Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exit nested FOR loops
Message
 
 
To
27/07/2007 13:52:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01244106
Message ID:
01244197
Views:
22
>>>An EXIT will exit the inner loop. You need another EXIT to exit the outer loop. What I usually do to exit multiple loops is to set a variable, in the inner loop, that can be tested in the outer loop.
>>>
>>Just set both counters to maximum number and you will fall off the loops.
>
>Oh, I see. That's an interesting alternative.

The only problem is that the current loop cycle is going to be executed anyway as opposed to exit.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform