Beispiel:
For a = 1 To 10
For b = 1 To 10
For c = 1 To 10
if ... then
...
Exit For
End If
Next c
' der Exit For Befehl kommt hierher
Next b
' Ich möchte aber hier landen. Wie macht man das?
Next a
Den einzigen Weg (ohne GOTO) den ich sehe ist:
For a = 1 To 10
For b = 1 To 10
hilfsvariable = 0
For c = 1 To 10
if ... then
...
hilfsvariable = 1
Exit For
End If
Next c
If hilfsvariable = 1 Then
Exit For
End If
Next b
Next a
Danke im voraus
Alan Hathway