Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling ESC Key in a Form???
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00000777
Message ID:
00000789
Views:
45
>
>Make sure you 'KeyPreview' in the Form is set to
>TRUE
>and trap the key in the Form KeyPress() event.
>

I am doing that. what do I do next:

KeyPress() event:
If nKey=27
* Help here - Where do I branch to in order to
* stop the unload event from firing. Do I need to
* recall the activate of the form again. I already
* tried a few options in here without success.
* As mentioned already in this thread, I tried NODEFAULT
* and that had no effect. I'm sure someone has killed the
* ESC key throughout an entire application before.
Endif

It appears to be a very easy fix, but it is eluding me today.
Bad computer karma I guess... Not to mention I am starting to
show initial signs of VFP coding burnout for today. These
signs include: Desire to program in Clipper 87, Inability to
spell VFP command words correctly, Accidently delete development
directory, feel free to add to the list. I'm sure everyone
has been there. Again, thanks for any help or ideas...
Steve Medvid
Systems Analyst

Environmental Resource Management
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform