Autor Beitrag
Stinger47
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 102



BeitragVerfasst: Mo 04.06.07 19:20 
Hi ihr...:)
ähm...
und zwar...ich habe ne procedure geschrieben in der mehrere if then abfragen sind....
so nun möchte ich wenn eine dieser if anweisungen erfüllt ist dass die ganze procedure beendet wird und nicht vollständig durchläuft...
gibts dafür irgendeinen befehl der mir helfen könnte?...^^
exit oder abort funktioniert nicht..^^
danke schonmal....:)


Moderiert von user profile iconChristian S.: Topic aus Algorithmen, Optimierung und Assembler verschoben am Mo 04.06.2007 um 19:28
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: Mo 04.06.07 19:26 
Also Exit geht bei mir.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
var
  blub: Boolean;
begin
  // ...
  if blub then
    Exit;
  // ...
end;
Stinger47 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 102



BeitragVerfasst: Mo 04.06.07 19:34 
hast dus mal mit mehreren if anweisungen in der procedure versucht?....
also dass zb erst die 2te if anweisung das exit auslösen soll und die wiederum weitern zwei if anweisungen dann übersprungen werden?..
wenn ja dann muss ich bei mir nochmal schauen...^^
Chryzler
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1097
Erhaltene Danke: 2



BeitragVerfasst: Mo 04.06.07 19:36 
Natürlich gehts. Probiers halt aus ;)
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mo 04.06.07 19:47 
Warum zeigst Du nicht ganz einfach deine procedure, als hier Hilfesteller noch als nicht kompetent hinzustellen. :wink:

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
Stinger47 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 102



BeitragVerfasst: Mo 04.06.07 20:04 
habs schon....die anweisung wurde woanders noch n zweites mal aufgerufen...klappt jetzt auch bei mir...
und euch als nicht kompetent darstellen war nicht meine absicht...;)
hab den fehler nur schon seit 2 stunden gesucht und wollt ihn einfach nicht finden....^^
also danke für die schnellen antworten....:)