Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To iif or not to iif = .t.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00513276
Message ID:
00514565
Views:
11
>George,
>
>do while oValid.lContinue
> User pressed ESC here, so oValid.lContinue=.f.
> lots of other code
>enddo
>
>I don't want to execute lots of other code, I want to stop loop immediatelly, after oValid.lContinue=.f.
>
>In other words, do while checks its condition only in the next pass, it doesn't check its condition inside the loop, which is my desire.

Nadya,

There's little point to checking the status of oValid.Continue either immediately after the top of the loop (it's evaluated there and the iteration structure terminates immediately if it equals .F.), or even shortly thereafter given the execution speed of the program. If there is a lengthly amount of processing to be done (in terms of real time) then periodically check then. You're going to have to make the decision of where you want to test. I certainly wouldn't even consider stopping processing of a structure modification in mid-stream (so to speak). When the operation completes, then check the value.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform