Einzelnen Beitrag anzeigen

Benutzerbild von Sharky
Sharky

Registriert seit: 29. Mai 2002
Ort: Frankfurt
8.251 Beiträge
 
Delphi 2006 Professional
 
#6

Re: TThread : Array als Parameter

  Alt 25. Feb 2008, 12:54
Code:
type TPrintAntrag=class(TThread)
     constructor create(s: array of string);
     protected
      procedure execute; override;
     private
[b]     Fs: array[0..100] of string; [/b]
end;



constructor TPrintAntrag.create(s: [b]array of string[/b]);
begin
  Fs:=s; // [color=red]FS ist Array[0.100] of String - s ist Array of String[/color]
  Freeonterminate:=true;
  inherited create(false);
end;
Edit: Der Union drängelt sich immer vor
Stephan B.
"Lasst den Gänsen ihre Füßchen"
  Mit Zitat antworten Zitat