Autor Beitrag
*Knust*
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 95



BeitragVerfasst: Di 08.01.08 09:35 
Hi
Ich schreibe gerade an einem Programm bei dem eine Prozedur einen integerwert als result ausgeben soll.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure blabla:integer;
begin
 blablabla;
end;


Als Fehlermeldung für den Prozess bekomme ich 'Prozedur kann keinen Ergebnistyp besitzen'.
Die Prozedur ist vorher nicht definiert.

WARUM???

mfg

Knust

Moderiert von user profile iconGausi: Delphi-Tags hinzugefügt
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 08.01.08 09:38 
Prozeduren, die ein Ergebnis zurückliefern solen, heißen in Delphi Funktionen. Ersetz also einfach das procedure durch function, dann sollte es klappen. :D

_________________
We are, we were and will not be.
*Knust* Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 95



BeitragVerfasst: Di 08.01.08 09:39 
ahhhh.... :P
Danke! ^^

Knust