Read (Screen function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Template:Screen:Read subtitle}}
{{Template:Screen:Read subtitle}}
The <var>Read</var> [[Notation_conventions_for_methods#Callable_methods|callable]] function does the actual write of the screen to the "terminal," and it invokes a <var class="product">Model 204</var> 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 <var>[[Screen classes|ScreenField]]</var> objects.


This 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==
==Syntax==
{{Template:Screen:Read syntax}}
{{Template:Screen:Read syntax}}
===Syntax terms===
===Syntax terms===
<dl>
<table class="syntaxTable">
<dt>%key  
<tr><th>%key</th>
<dd>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.
<td>A declared <var>[[Screen classes#ActionKey_enumeration|ActionKey enumeration]]</var> set to the identifier of the key that activated the reading of the screen. Valid values (case unimportant) are <var>Enter</var> and <var>pf1</var>, <var>pf2</var>, and so on through <var>pf24</var>. </td></tr>
<dt>%screen  
 
<dd>A reference to an instance of a Screen object.
<tr><th>screen</th>
</dl>
<td>A reference to an instance of a <var>Screen</var> object.</td></tr>
</table>
 
==Usage notes==
==Usage notes==
<ul><li>The <var>[[Modified_(ScreenField_property)|Modified]]</var> property is reset for all non-protected <var>ScreenFields</var> after the <var>Read</var> method is invoked.  If a particular <var>ScreenField</var> value has been modified by the user, the <var>Modified</var> property for that field is set to <code>True</code>.  Otherwise, the <var>Modified</var> property is set to <code>False</code>.
</ul>


The Modified property is reset for all non-protected
==Examples==
ScreenFields after the Read method is invoked. If a particular ScreenField value
For an example using the <var>Read</var> method, see [[Screen object sample code|"Screen object sample code"]].
has been modified by the user, the Modified property for that field is set to True.
Otherwise, the Modified property is set to False.


For an example using the Read method, see [[Screen Object Sample Code]].
==See also==
==See also==
{{Template:Screen:Read footer}}
{{Template:Screen:Read footer}}

Latest revision as of 22:59, 16 November 2012

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 to False.

Examples

For an example using the Read method, see "Screen object sample code".

See also