Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On esc?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00100175
Message ID:
00104342
Views:
21
>Thanks for the reply, that's actually what I did
in the end.

I'm going to read a little into your message here... it sounds like you have a form containing a grid. (After all, releasing the browse when the escape key is pressed IS the default behavior.)
>
>If you want the escape key to release a _FORM_, you can either add a cancel button to the form (set button.CANCEL=.t.) or do this:
>
>form.keypreview=.t.
>
>In form's KEYPRESS method, add this code:
>
>IF nKeyCode = 27 && fox will provide this variable as a parameter
> thisform.release
>ENDIF
>
>You don't want ON ESC at all. Ever. Very old. Out-dated. Icky. <g>
>
>>vfp 3.0 win 95
>>
>>I have a browse from that I would like to add
>>ON ESC and have it release the form, everything
>>that I have read tells you to "DO" a function.
>>
>>Is there a way to just have it release the form?
>>
>>Thanks and have a great day!
Previous
Reply
Map
View

Click here to load this message in the networking platform