Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I return to the top of a DO CASE?
Message
From
27/04/1998 16:35:21
 
 
To
27/04/1998 15:59:56
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00095239
Message ID:
00095246
Views:
19
>How do I LOOP back to the top of a DO CASE while I am still
>in the DO CASE?

If I understand correctly, you want to terminate the current case item execution at a certain point so it won't continue with the current code.

To do that, just move that case item code into a function and replace that section with the call to the function itself. Then, from the function, just RETURN at any given point so it will be back in the CASE. You will also have to add a DO WHILE condition to encapsulate the DO CASE. So, by returning to the case item, you would do return in the DO WHILE loop.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform