Read (Screen function): Difference between revisions
Jump to navigation
Jump to search
m (→Examples) |
m (unvar) |
||
Line 6: | Line 6: | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th | <tr><th>%key</th> | ||
<td>A declared <var>[[ActionKey_enumeration#ActionKey_enumeration|actionKey enumeration]]</var> set to the identifier of the key that activated the reading of the screen. Valid values (case unimportant) are <code>Enter</code> and <code>pf1</code>, <code>pf2</code>, and so on through <code>pf24</code>. </td></tr> | <td>A declared <var>[[ActionKey_enumeration#ActionKey_enumeration|actionKey enumeration]]</var> set to the identifier of the key that activated the reading of the screen. Valid values (case unimportant) are <code>Enter</code> and <code>pf1</code>, <code>pf2</code>, and so on through <code>pf24</code>. </td></tr> | ||
<tr><th | <tr><th>screen</th> | ||
<td>A reference to an instance of a <var>Screen</var> object.</td></tr> | <td>A reference to an instance of a <var>Screen</var> object.</td></tr> | ||
</table> | </table> |
Revision as of 10:32, 28 June 2011
Write screen to display and return response (Screen class)
The Read Callable-function does the actual write of the screen to the "terminal," and it invokes a Model 204 wait while the user responds to the displayed screen. It then reads from the terminal the subsequent user response and updates the values of any modified ScreenField objects.
Syntax
[%key =] screen:Read Throws ScreenReadError
Syntax terms
%key | A declared actionKey enumeration set to the identifier of the key that activated the reading of the screen. Valid values (case unimportant) are Enter and pf1 , pf2 , and so on through pf24 . |
---|---|
screen | A reference to an instance of a Screen object. |
Usage notes
- The Modified property is reset for all non-protected ScreenFields after the Read method is invoked. If a particular ScreenField value has been modified by the user, the Modified property for that field is set to
True
. Otherwise, the Modified property is set toFalse
.
Examples
For an example using the Read method, see "Screen object sample code".