Autor Beitrag
Redrah
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24

Win XP
D6, Turbo Delphi
BeitragVerfasst: Fr 24.11.06 19:04 
Hey leutz,
ich hab nen Problem!
ich hab ne schleife
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
for x=1 to 10
begin
...
IF a = b Then
// dann möchte ich das nur der aktuelle x wert beendet wird und es zum nächsten x wert gegangen wird
end;


Also als Beispiel
Wenn bei x=3 a gleich b ist dann soll es keine weiteren Zeilen innerhalb der schleife ausführen und gleich zu x=4 springen.

Ich hoffe ihr habt eine Lösung für mein Problem. Vielen Dank!

_________________
MFG Daniel
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19315
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Fr 24.11.06 19:05 
ausblenden Delphi-Quelltext
1:
Continue;					

// EDIT:
Außerdem musst du x := 1 statt x = 1 schreiben...


Zuletzt bearbeitet von jaenicke am Fr 24.11.06 19:08, insgesamt 1-mal bearbeitet
Redrah Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24

Win XP
D6, Turbo Delphi
BeitragVerfasst: Fr 24.11.06 19:07 
Vielen Dank für deine superschnelle Hilfe!

_________________
MFG Daniel