Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Bases";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

Dynamic array Find similar branches


Vs   (2001-12-06 16:23) [0]

The problem is ....
procedure FileFormat (f_name: string; var ExtEr: array of string; var rsm
: integer);
was
.....
begin
........
rsm: = <new value>;
SetLength (ExtEr, rsm);
end;

Swears at type mismatch in the SetLength line!
What am I wrong?
The meaning of the procedure is that as a result of calculations, it should return an array and its size.



Искатель   (2001-12-06 18:24) [1]

procedure SetLength (var S: string; NewLength: Integer);
where S is a string, but not an array of strings



Light Elf   (2001-12-06 21:55) [2]

2
in Delphi6
SetLength (var S: <string or dynamic array>, NewLength: integer);



Digitman   (2001-12-07 11:16) [3]

type TMyOpenArray = array of string; procedure FileFormat (f_name: string; var ExtEr: TMyOpenArray; var rsm : integer); var ..... begin ........ rsm: = <new value>; SetLength (ExtEr, rsm); end;




Pages: 1 whole branch

Forum: "Bases";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.55 MB
Time: 0.029 c
3-21947
Diehard
2001-12-05 13:18
2002.01.08
Retrieving an index list from an Oracle table


14-22376
Brand-new
2001-11-07 01:11
2002.01.08
help someone can


1-22189
bestix
2001-12-14 19:54
2002.01.08
Metafiles


3-21978
Anonymous worker
2001-12-04 20:25
2002.01.08
ADO + Excel + Delphi5


14-22362
MIFI
2001-11-04 02:34
2002.01.08
how to find a person





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish