Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Kill a loop
Message
From
27/07/2011 08:31:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
26/07/2011 18:18:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01519264
Message ID:
01519307
Views:
51
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform