Autor Beitrag
the_immortal
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 78



BeitragVerfasst: Di 18.10.05 15:30 
Wie kann ich ein Array, resp alle Einträge des Array of Integer freigeben?
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Di 18.10.05 15:31 
ausblenden Delphi-Quelltext
1:
Setlength(MeinIntegerArray,0);					

_________________
We are, we were and will not be.
the_immortal Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 78



BeitragVerfasst: Di 18.10.05 15:37 
Vielen Dank für die Antwort!

Kann ich ein Array als Rückgabewert einer Funktion definieren?


Wie folgt funktionierte es nicht:

ausblenden Delphi-Quelltext
1:
   function replicate_table(table, tableid: String; masterid: Integer): array of String;					
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Di 18.10.05 15:41 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
 Type 
  TStringArray = array of string;
//...

function replicate_table(table, tableid: String; masterid: Integer): TStringArray;

_________________
We are, we were and will not be.
the_immortal Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 78



BeitragVerfasst: Di 18.10.05 15:45 
wie kann ich ein array of String einem selbigen übergeben?

so funktioniert das nicht:

frmReplication.arrMasterid := arrIdfinal;