Autor Beitrag
JustusJonas
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 222



BeitragVerfasst: Mo 06.02.06 18:30 
Hi....

gibt es einen Befehl mit dessen Hilfe ich die aktuelle Funktion/Prozedur verlassen kann?

Für eine Schleife gibt es ja break, aber gibt's sowas auch für ganze Funktionen?

Greetz
Jailbird
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 127

Windows XP Pro SP2
Delphi 7 Professional
BeitragVerfasst: Mo 06.02.06 18:32 
ja...Exit, aber eigentlich ist das "unschöner" Programmierstil
feivel3333
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 190

W7
Delphi XE prof
BeitragVerfasst: Mo 06.02.06 18:44 
Wieso ist "EXIT" unschön?
Jailbird
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 127

Windows XP Pro SP2
Delphi 7 Professional
BeitragVerfasst: Mo 06.02.06 19:12 
Ein Exit ist normalerweise innerhalb eines if- oder else- Astes. Also ist es auch danach möglich, diese Bedingung zu prüfen und das Exit zu unterdrücken. Meiner persönlichen Meinung nach ist der Grund für das Exit so innerhalb der Programmlogik schon versteckt und macht mehr Sinn, als das setzen eines Exit