Hi, Bruce:
I noticed the same problem when in a form, when the operator presses the escape 
{x} key.  It just exist.I also noticed that most of Razzak's examples do not 
have the escape enabled, but have a button to close the form.
So, the question to the RB group is:  Can we interpret when the escape key [x] 
is pressed while in a forms?It would be nice if we could capture when it is 
pressed.
Jim  


    On Wednesday, January 29, 2025 at 03:47:29 PM EST, Bruce Chitiea 
<[email protected]> wrote:  
 
 All:
(rbg11)
Apparently by default, a Form terminates when the [esc] key is hit; no matter 
the setting of the ESCAPE operating condition. 
But I'd like to capture an [esc] key-press within a Variable Edit control, to 
direct focus to an 'Exit' push button control, thereby avoiding Form closure.
Thinking that an On Key Press EEP might do the trick, after reading the 
R:Syntax descriptions of the CHKKEY and GETKEY functions, and ensuring that 
ESCAPE is set to OFF, I tried this:
IF (CHKKEY(0)) = 1 THEN  IF (GETKEY(0)) = '[027]' THEN    PROPERTY cid_pb_exit 
SET_ACTIVE_CONTROL 'TRUE'   ENDIFENDIF
RETURN
This fails; the Form terminates when I hit the [Esc] key. Using '[esc]' also 
fails.
R:Syntax reports that the GETKEY function "Gets the text value, in brackets, of 
the first key ..."
A "...text value, in brackets..." issue? A Syntax problem, perhaps?
Appreciate your help! Bruce
Bruce A. ChitieaSafeSectors, Inc.1142 S Diamond Bar Blvd # 442Diamond Bar CA 
91765-2203
[email protected] (909) 238-9012 m


-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/rbase-l/emc4ef3ec2-b9fd-4070-876d-5d9a3d6d71c4%40ceba5eea.com.
  

-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/rbase-l/1948312404.6102220.1738186997389%40mail.yahoo.com.

Reply via email to