MaxActionKey (Screen property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (match syntax table to syntax template; edits, tags and links)
Line 1: Line 1:
{{Template:Screen:MaxActionKey subtitle}}
{{Template:Screen:MaxActionKey subtitle}}
The <var>MaxActionKey</var> property sets or gets the enumeration of the keyboard action key on this screen that has the highest equivalent numeric value.


This property sets or gets the enumeration of the keyboard action key on this screen that has the highest equivalent numeric value. Each action key, which activates a screen read, is identified by an ActionKey enumeration (Enter and pf1 through pf24). A key's numeric value is the number associated with its enumeration: for Enter this is 0; for pf1 it is 1; for pf2 it is 2, and so on.  
Each action key, which activates a screen read, is identified by an <var>[[ActionKey_(Screen_function)#ActionKey_enumeration|ActionKey enumeration]]</var> (<code>Enter</code> and <code>pf1</code> through <code>pf24</code>). A key's numeric value is the number associated with its enumeration: for <code>Enter</code> this is <code>0</code>; for <code>pf1</code> it is <code>1</code>; for <code>pf2</code> it is <code>2</code>, and so on.
 
<var>MaxActionKey</var> lets you limit the range of possible <var>ActionKey enumeration</var> return values you need to allow for in your program code (for example, if the values are the possible targets of a <var class="product">User Language</var> computed <var>JUMP TO</var> statement as shown in the [[Screen Object Sample Code]]).


MaxActionKey lets you limit the range of possible ActionKey enumeration return values you need to allow for in your program code (for example, if the values are the possible targets of a User Language computed JUMP TO statement as shown in the [[Screen Object Sample Code]]).
==Syntax==
==Syntax==
{{Template:Screen:MaxActionKey syntax}}
{{Template:Screen:MaxActionKey syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%key</th>
<tr><th>%currentActionKey</th>
<td>A declared MaxActionKey enumeration. Valid values are Enter and pf1, pf2, and so on through pf24. The value that is set initially is Enter. </td></tr>
<td>The current value of as a <var>MaxActionKey</var> enumeration. Valid values are <code>Enter</code> and <code>pf1</code>, <code>pf2</code>, and so on through <code>pf24</code>. The value that is set initially is <code>Enter</code>.</td></tr>
<tr><th>%screen</th>
<tr><th>screen</th>
<td>A reference to an instance of a Screen object.</td></tr>
<td>A reference to an instance of a <var>Screen</var> object.</td></tr>
<tr><th>newActionKey</th>
<td>A declared <var>MaxActionKey</var> enumeration to be set. Valid values are <code>Enter</code> and <code>pf1</code>, <code>pf2</code>, and so on through <code>pf24</code>.</td></tr>
</table>
</table>


==Usage notes==
==Usage notes==
<ul><li>You can use the <var>ActionKey</var> class <var>ToNumber</var> method to convert <var>ActionKey</var> enumeration values to their equivalent numeric values.</ul>


You can use the ActionKey class ToNumber method to convert ActionKey enumeration values to their equivalent numeric values.
==See also==
==See also==
{{Template:Screen:MaxActionKey footer}}
{{Template:Screen:MaxActionKey footer}}

Revision as of 09:34, 25 June 2011

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

The MaxActionKey property sets or gets the enumeration of the keyboard action key on this screen that has the highest equivalent numeric value.

Each action key, which activates a screen read, is identified by an ActionKey enumeration (Enter and pf1 through pf24). A key's numeric value is the number associated with its enumeration: for Enter this is 0; for pf1 it is 1; for pf2 it is 2, and so on.

MaxActionKey lets you limit the range of possible ActionKey enumeration return values you need to allow for in your program code (for example, if the values are the possible targets of a User Language computed JUMP TO statement as shown in the Screen Object Sample Code).

Syntax

%currentActionKey = screen:MaxActionKey screen:MaxActionKey = newActionKey

Syntax terms

%currentActionKey The current value of as a MaxActionKey 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.
newActionKey A declared MaxActionKey enumeration to be set. Valid values are Enter and pf1, pf2, and so on through pf24.

Usage notes

  • You can use the ActionKey class ToNumber method to convert ActionKey enumeration values to their equivalent numeric values.

See also