11-08-2024, 06:12 PM
Quote:@doppler - I got the same aversion about GOTO.Sometimes GoTo is really OK, otherwise you would have to use a more complex loop. I posted something about this a while ago. The original is: Debugging the Software Development Process. It contains a good example of GoTo.
The random generator with GoTo:
Code: (Select All)
FalscheEingabe:
Print
Input "Anzahl der Zufallsnummern (Max 10): ", anzahlNummern
If anzahlNummern > 10 Then
Beep: Print "Maximal 10 Nummern!"
Sleep 2
'System
Cls
GoTo FalscheEingabe
End If