Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Graceful exit on ESC from triggers and rules
Message
From
07/04/2005 15:36:27
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01002344
Message ID:
01002405
Views:
29
I suppose you could create a local Object at the beginning of the routine and store state to it. In the destroy event of the object it can restore state.

Glenn
>>Would TRANSACTIONS be overkill ?
>
>I just came up to the idea, but do you think it would work?
>
>lcOldOnEscape = on('escape')
>on escape cleanup(m.lcOldOnEscape)
>==============
>
>Cleanup()
>...
>on escape &lcOldOnEscape
>keyboard '{esc}' && e.g. we would try to simulate esc
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform