Also, you can't check the value of lastkey(1) using trace. Lastkey(1) will
always be the result of your keypress during the trace session. If you want
to check it, assign it to a variable and display it.
----- Original Message -----
From: "Ben Petersen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 12, 2001 12:03 PM
Subject: Re: Need help with chkkey & getkey V6.5++ dos
> Mike,
>
> Have you used this code under RBW6.5+ ?
>
> I just tried it in an app to selectively pop up a form, but the mapped
> [F12] key returns [Enter] using lastkey while 6.1a lastkey returns
> [F12]...
>
> Same for [Alt][F3]
>
> Ben Petersen
>
>
>
> On 12 Sep 2001, at 12:48, Michael Young wrote:
>
> > Hi Bernie,
> >
> > I use this code and it works fine:
> >
> > set v veeplast = (lastkey(1))
> > if veeplast = '[F12]' then
> > do something
> > endif
> >
> > Actually I never tried it with the F12 key. I use [Alt][F3] and
[Alt][F9].
> > Whatever key that you use, you must first KEYMAP it to [Enter] or it
will
> > never exit the field and trigger the EEP.
> >
> > Best regards,
> > Mike Young
> >
> > --Original Message Text---
> > From: Bernie Lis
> > Date: Wed, 12 Sep 2001 15:25:49 -0700
> >
> > In an eep I tried the following:
> > set var gotkey = (chkkey(0))
> > if gotkey = 1 then
> > � set var f12 = (getkey(0))
> > ��if f12 = '[F12]'�� then
> > ��� do something
> > � endif
> > endif
> > �
> > I put this eep in an exit from the first field in the form, in a region.
> > I touch F12 but nothing happens.� Of course the eep doesn't execute
until I exit the
> > field.� so how do I use it?
> > �
> > I want to bring up a second form when F12 is pressed.
> > �
> > Bernie Lis
> > Megabytes, Inc.
> >
> >
> >
> >
>
>
>