Dr. Razzak,
Can this new property be used to store the data in the variable without
having to leave the field? Can the escape key be used to store the data
in the variable?
Mike
A. Razzak Memon wrote:
Monday, April 7, 2008
Tip of the Day #4: Using "On Key Press" EEP for Instant Results
Section: Form Controls (DB and Variable Edit Controls)
Supported Versions:
. R:BASE 7.6 (Build 7.6.3.30404 or higher) for Windows
. R:BASE C/S:I 7.6 (Build 7.6.3.30404 or higher) for Windows
. R:BASE Turbo (Build 8.0.17.30404 or higher) for Windows
Did you know that you can use the new "On Key Press" EEP to
execute a defined code while start typing a character in DB
Edit or Variable Edit control?
Use "On Key Press" EEP, an event handler to make something
happen as a result of a single character key press.
The Key parameter in the On Key Press event handler is of type
TEXT; therefore, the On Key Press event registers the ASCII
character of the key pressed. Keys that don't correspond to an
ASCII Char value (Shift or F1, for example) don't generate an
On Key Press event. Key combinations (such as Shift+A), generate
only one On Key Press event (for this example, Shift+A results
in a Key value of "A" if Caps Lock is off).
Examples:
http://www.rupdates.com/sat2008/samples/UsingOnKeyPressEEP_01.jpg
http://www.rupdates.com/sat2008/samples/UsingOnKeyPressEEP_02.jpg
http://www.rupdates.com/sat2008/samples/UsingOnKeyPressEEP_03.jpg
A sample application to demonstrate the use of "On Key Press" EEP
is also available at:
2008 SAT Sample Applications: http://www.rupdates.com/SAT2008/
Folder: \DesigningSearchScreensUsingKeyPressOption
Database: KeyPress
Form: SearchAndEditCust2
Command File: DesigningSearchScreensUsingKeyPressOption.dat
Very Best R:egards,
Razzak.