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'
  ENDIF
ENDIF

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. Chitiea
SafeSectors, Inc.
1142 S Diamond Bar Blvd # 442
Diamond 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.

Reply via email to