Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stop a scan
Message
 
 
To
27/02/2013 18:06:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01567088
Message ID:
01567097
Views:
73
>>>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
>>
>>You set some variable and in the scan you check
>>
>>scan
>>
>>   if m.StopExecution
>>      exit
>>   end
>>
>>endscan
>
>But how does m.StopExecution get set? ON KEY LABEL ESC?

Good question. In my older code it was set in ON KEY LABEL ESC. The Cancel button can also try to set this variable. In this case we need DoEvents() added to the scan code.
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