Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Kill a loop
Message
De
27/07/2011 08:31:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
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:
01519307
Vues:
52
>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.

What I did was somewhat similar to Naomi's post, but instead of an ON KEY or ON ESCAPE, I checked for keypress (INKEY) inside the loop. I defined the key Alt-X for interrupting various processes, but ESC can be used just as well.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform