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.021 c
4-22482
PONTIY
2001-11-01 10:06
2002.01.08
WinExec or ShellExecute


14-22369
Victor Tsay
2001-11-08 09:11
2002.01.08
How in the Delphi editor to shift blocks of text?


14-22413
RUS
2001-11-11 21:27
2002.01.08
CD-RW


14-22395
Alien
2001-11-07 01:15
2002.01.08
What mess is different from the order?


14-22319
iea
2001-11-02 13:34
2002.01.08
Anyone who wears (l) glasses! The question is not idle





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 Spanish 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