General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only