Thank you SO MUCH Michael - I hadn't thought of the KeyPress event!

Major DUH on my part...

-K-

-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Michael Oke, II
Sent: Tuesday, June 28, 2011 1:19 PM
To: [email protected]
Subject: Re: To <ESC>ape from a Form...

Trap for the Escape key in tje KeyPress event of the form.  Be sure to
set
KeyPreview to .T. or the object in the form that has the focus will
prevent
the form from knowing that the escape key has been pressed.

Michael Oke, II
661-349-6221
[email protected]
On Jun 28, 2011 10:13 AM, "Kurt Wendt" <[email protected]> wrote:
> OK - Maybe its just a Brain-Fart, but, gosh - I thought this would be
a
> "No-Brainer"...
>
> I am making a small Form, for the entry of just a couple of items of
> data, but, I want to allow the user to ESCape from the Form by hitting
> the <ESC> key. I tried using the following command:
> ON KEY LABEL ESC DO Thisform.Unload.Unload()
>
> But - VFP Yells at me that I can't use "Thisform" Except from within a
> Method.
>
> So - I'm a little lost. I even just tried to Set ESCAPE ON - and
hoping
> that would work, but, of course - no go...
>
> Any suggestions? I just figured this should be something simple - and
I
> MUST be missing a simple answer!
>
> TIA,
> -K-
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/289ea162f5642645b5cf64d624c66a1409df2...@us-ny-mail-002.waitex.net
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to