Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Please explain 'DO WHILE .T.'
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00307982
Message ID:
00308026
Vues:
36
>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
Fil
Voir

Click here to load this message in the networking platform