Bernie,
You must KEYMAP [F12] before entering the form, otherwise [F12] will not take you out of the field when you press it.
set keymap [F12] = [Enter]
edit using whateverform
While in the form on the field with the EEP, press [F12]. Since it now is the [Enter] key it will activate the EEP (assuming you have it triggered on exit from the field).
Here is the EEP:
set var akey = (lastkey(1))
if akey = "[F12]" then
pause 2 using "F12 was pressed"
endif
return
Best regards,
Mike Young
--Original Message Text---
From: Bernard Lis
Date: Wed, 12 Sep 2001 23:27:12 -0400
I still don't understand -- here is my eep
set escape off
set keymap [F12] = [Enter]
set var akey = (lastkey(1))
if akey = "[F12]" then
pause 2 using "F12 was pressed"
endif
set escape on
set keymap [F12] off
return
Am I right in saying that the exit eep won't execute until I press [Enter] to leave that field. So the last key is [Enter] not [F12]
How do I detect that [F12] has been pushed?
Bernie Lis
----- Original Message -----
From: MikeB
To: [EMAIL PROTECTED]
Sent: Wednesday, September 12, 2001 3:50 PM
Subject: Re: Need help with chkkey & getkey V6.5++ dos
You might have better luck remapping f12 to '[enter]' then testing for lastkey(1).
----- Original Message -----
From: Bernie Lis
To: [EMAIL PROTECTED]
Sent: Wednesday, September 12, 2001 5:25 PM
Subject: Need help with chkkey & getkey V6.5++ dos
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.
- Need help with chkkey & getkey V6.5++ dos Bernie Lis
- Re: Need help with chkkey & getkey V6.5++ dos MikeB
- Re: Need help with chkkey & getkey V6.5++ dos Michael Young
- Re: Need help with chkkey & getkey V6.5++ dos Ben Petersen
- Re: Need help with chkkey & getkey V6.5++ dos A. Razzak Memon
- Re: Need help with chkkey & getkey V6.5++ dos Bernard Lis
- Re: Need help with chkkey & getkey V6.5++ dos Michael Young
- Re: Need help with chkkey & getkey V6.5++ dos Michael Young
- Re: Need help with chkkey & getkey V6.5++ dos Ben Petersen
- Re: Need help with chkkey & getkey V6.5++ dos Ben Petersen
- Need help with chkkey & getkey V6.5++ dos J.M. GRATIAS
- Re: Need help with chkkey & getkey V6.5++ dos MikeB
- Re: Need help with chkkey & getkey V6.5++ dos MikeB
