ActionKey (Screen function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
(No difference)

Revision as of 16:26, 16 February 2011

Return name of key that activated last screen read (Screen class)


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.

Syntax

%key = screen:ActionKey

Syntax terms

%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.

See also