Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Kill a loop
Message
 
 
To
26/07/2011 18:18:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01519264
Message ID:
01519265
Views:
65
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform