Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exiting nesting loops
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00449008
Message ID:
00449023
Views:
14
Hi Nadya,

I'd try to restructure the loops so that a hard coded escape isn't necessary. What are your exit conditions?

>Hi everybody,
>
>I want to exit by escape from the loop.
>The program structure is like this:
>
>do while oValid.lContinue && I added this at the top to allow exit by escape
>  for i=1 to FirstLoop
>    for k=1 to SecondLoop
>
>       etc. couple of scan..endscan, loops, etc.
>    next
> next
> exit
>enddo
>
>How can I terminate multiple nested loops by escape?
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform