Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do...[Statements] while [boolean] as in C#'.Net
Message
From
23/02/2007 12:18:42
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01198353
Message ID:
01198365
Views:
8
>No, there is no such loop in VFP, but instead of duplicating code you could do:
>
>lbLoop = .t.
>DO WHILE lbLoop
>   ... Your Code  here
>   lbLoop = (something)
>ENDDO
>
>That is the exactly as in C++, C# - DO WHILE() construction.
>Because in the beginning lbLoop is .t. you will enter in the loop, after that at the end of the loop you must change the value of that variable to match your condition.

Very good tips everyone. I like the suggestion above, and, I do need to get into the habit of scan..endscan for operations such as the mondo-huge-data import that I was talking about earlier. Thank You!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform