Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loop never stops
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00967910
Message ID:
00967917
Vues:
7
DO WHILE .T.
  * allow ESC or insert (for dev) to cancel seach
  lnKey = INKEY()
  IF lnKey = 27 OR (.t. AND lnkey = 22)
    llCancel = .T.
    EXIT
  ENDIF
  *---code here
  ***** more code here
  WAIT WINDOW NOWAIT "llcancel value is "+TRANSFORM(llCancel) && new code
ENDDO
I ran this code and worked too.

(The wait window would never show llCancel as true for you are exiting the loop before.)
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform