Autor Beitrag
Allesquarks
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 510

Win XP Prof
Delphi 7 E
BeitragVerfasst: Mo 20.06.05 16:35 
Wieso gibt mir Delphi Fehler wenn ich eine Anweisung wie folgt formuliere:

ausblenden Delphi-Quelltext
1:
result:= funktionsaufruf(variable);					


und wenn ich es wie folgt schreibe nicht:

ausblenden Delphi-Quelltext
1:
2:
z:=funktionsaufruf(variable);
result:=z;


ist doch eigentlich dasselbe.

P.S.:z ist array of record

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt.
Moderiert von user profile iconChristian S.: Topic aus Sonstiges verschoben am Mo 20.06.2005 um 17:39


Zuletzt bearbeitet von Allesquarks am Mo 20.06.05 16:43, insgesamt 1-mal bearbeitet
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Mo 20.06.05 18:34 
user profile iconAllesquarks hat folgendes geschrieben:
Wieso gibt mir Delphi Fehler wenn ich eine Anweisung wie folgt formuliere:

Wieso schreibst du den Fehler hier nicht mit rein? immer dieses rumgerate.

Zitat:

P.S.:z ist array of record

ich rate mal:
du muß dir einen eigenen Type erstellen
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
type TMeinarray = array of record;

...
z:Tmeinarray;
...
function blabla:TMeinaaray;
...


näheres steht in der OH auch zu "Array-Parameter".

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)