Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stop a scan
Message
From
27/02/2013 20:53:38
 
 
To
27/02/2013 17:19:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01567088
Message ID:
01567112
Views:
64
>VFP9SP2
>
>Hi,
>
>I would like to conditionaly stop a scan. The easiest way would be to {set escape on} and invoke the ESC key. However the application rules that 'settings' should not be used. Do we have an other option?
>
>Regards,
>
>Koen

If SET ESCAPE is already off I seem to remember doing it this way back in the dBase era and it still works
USE myTable
SCAN
	IF INKEY() <> 27
		Do whatever
	ELSE
		?"STOPPED"
		EXIT
	ENDIF
ENDSCAN
?"DONE"
Previous
Reply
Map
View

Click here to load this message in the networking platform