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))
 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.


Reply via email to