Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Please explain 'DO WHILE .T.'
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00307982
Message ID:
00308026
Views:
35
>We used to use while(1) in C for manufacturing test code where we wanted an infinite loop on the production line. But in each loop there would be a prompt to allow the operator to exit the loop anytime they wanted to stop interactively. Your asking for trouble to try coding the only escape mechanizm.

I plan to leave the escape - there is an absolute RETURN just before the ENDDO. However, I'm not sure why he has it in there. A similar routine doesn't use it at all. It supports a lookup function, where he pops up a window for name or order number input, then seeks the record. On second thought, he does have some LOOP instructions for failed lookups... so I guess he did that to allow easy retry of the lookup.

Thanks,
Neil
Previous
Reply
Map
View

Click here to load this message in the networking platform