General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only