Autor Beitrag
Bremi80
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37

Win XP
Delphi 5 Pro/Std
BeitragVerfasst: Mi 18.01.06 12:33 
Moin zusammen.

Ich habe da ein kleines Problem:

ich habe zwei Instanzen einer Form, die sollen miteinander komunizieren. Dazu möchte ich meine Daten in einem Array abspeichern (private), und möchte mit einer Get-Funktion die Werte auslesen.

ausblenden Delphi-Quelltext
1:
function GetArrayData : array [1..401] of Integer;					


Und an dieser Stelle bekomme ich eine Fehlermeldung, daß anstelle von array ein Bezeichner erwartet wird. Eigentlich muss man bei Delphi doch auch ein Array als Funktionswert zurückgeben können.

Gruß, Daniel
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: Mi 18.01.06 12:45 
afaik muss man das dann so machen:
ausblenden Delphi-Quelltext
1:
2:
3:
Type TMyIntegerArray: array [1..401] of Integer;
//[...]
function GetArrayData : TMyIntegerArray;

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

Win XP
Delphi 5 Pro/Std
BeitragVerfasst: Mi 18.01.06 12:53 
Sorry, blöde Frage. :oops:
Ich hätte vielleicht besser in der Hilfe nachschauen sollen.
Danke, Daniel