ActionKey (Screen function)

From m204wiki
Revision as of 18:57, 31 January 2011 by Tom (talk | contribs) (→‎ActionKey property)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This read-only property returns an actionKey enumeration which is the keyboard key that activated the last screen read. ActionKey enumerations are pf1 through pf24, and enter.

  %key = %screen:actionKey
ActionKey syntax
%key
A declared ActionKey enumeration. Valid values are Enter and pf1, pf2, and so on through pf24. The value that is set initially is Enter.
%screen
A reference to an instance of a Screen object.
Usage Notes

You can use the ActionKey class ToNumber method to convert ActionKey enumeration values to a numeric value: the integer that remains after the key name is stripped of its “PF” prefix. For Enter, the numeric value is 0. These values are useful in a value-testing loop in conjunction with the User Language JUMP statement.