Thema: Delphi SetLength und type?

Einzelnen Beitrag anzeigen

Benutzerbild von sakura
sakura

Registriert seit: 10. Jun 2002
Ort: München
11.412 Beiträge
 
Delphi 11 Alexandria
 
#6

Re: SetLength und type?

  Alt 15. Dez 2003, 16:07
Dann versuche es doch mal, die Variable anders zu benennen.

Code:
type
  TStringArray = array of string;

procedure TForm1.ArrayFuellen(var [color=#ff0000]SomeArray[/color]: TStringArray);
begin
  SetLength([color=#ff0000]SomeArray[/color], ListBox1.Count);

  ...
end;
......
Daniel W.
Ich bin nicht zurück, ich tue nur so
  Mit Zitat antworten Zitat