Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loop never stops
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Loop never stops
Divers
Thread ID:
00967910
Message ID:
00967910
Vues:
62
Hi friends

I have some code which runs thr a loop.it can be infinite loop depending on the parameters passed to it.my sample code

DO WHILE .T.
* allow ESC or insert (for dev) to cancel seach
lnKey = INKEY()
IF lnKey = 27 OR (gldevelop AND lnkey = 22)
llCancel = .T.
EXIT
ENDIF
---code here
**** more code here
ENDDO

as u can see i added code inkey() so that user can quite out of the program anytime he wants.(he can press ESC or INS)

but no matter how many times i press ESC or INS the program would not stop !!
is it a bug ? or am i missing anything here.
Thanks for ur ideas
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform