>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)