KEYTRAP |
![]() ![]() ![]() |
The KEYTRAP statement defines trap keys for use with INPUT @.
Format
KEYTRAP (action, key), (action, key), ...
where
A negative action value removes the key binding specified by key.
The KEYTRAP statement defines one or more keys that will terminate an INPUT @ statement. When any of these keys in pressed the INPUT @ returns with the original value of the input variable. The STATUS() function will return the value defined by action for the key.
See the KEYEXIT statement for a method to return the input data as entered up to the moment when this key was used.
See also: |