Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement