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:
00513394
Views:
11
>Hi Rip,
>
>In the Documents section here there is a document called "VFP: Do and don't". I think, these kind of things should be added into this document. Will you do this, please?
>
>George's comment is also valuable, though I found situations, when I can not avoid exit (if I'm in the for next loop for example)

In many instances, the use of FOR...NEXT is quite simply the wrong choice of iteration structures. If the loop is to terminate conditionally, then DO WHILE...ENDDO is correct. There are exceptions, however. In this instance, performance may be a reason. However, in that case, you would need to be in the midst of an loop structure with many millions of iterations. Short of that, performance isn't an issue.
George

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

Click here to load this message in the networking platform