Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET ESCAPE status
Message
From
12/02/2010 09:53:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01448925
Message ID:
01448929
Views:
35
This message has been marked as a message which has helped to the initial question of the thread.
>Hi Gang!
>
>This one escapes me, off the top of my old bald head!
>
>I want to turn off the ESCAPE key, so I want to SET ESCAPE OFF.
>
>But, I want to save the ESC key status before I do that, then restore it when I get done with my code....
>
>Is the there a SET command or other command that will tell me the status of ESCAPE at any time?
>
>Thanks!

OK, I see you already got a reply. Here is an example:
local lcSetEscape
lcSetEscape = set("escape")
set escape off

* Do your stuff here

set escape &lcSetEscape && Macro-substitution replaces the following 5-line IF:

* if lcSetEscape = "ON"
*   set escape ON
* else
*   set escape OFF
* endif
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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform