Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Kill a loop
Message
 
 
À
26/07/2011 18:18:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01519264
Message ID:
01519265
Vues:
66
>Isn't there a way to stop a long dead loop (scan in this case)? I seem to remember a command like SET BREAK ON that would allow an ESC or Cntl+C to exit a loop but these don't seem to work any more.

Check EXIT command in Help.

Also,
SET ESCAPE ON
ON ESCAPE lStop = .T.

lStop = .F.

SCAN WHILE not lStop 

  IF m.lStop or some other stop condition
    EXIT
  ENDIF

** Do something
ENDSCAN
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform