Value (ScreenField property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
 
mNo edit summary
Line 1: Line 1:
This property sets or returns the value of a ScreenField. The value is set from or copied to a User Language string, and it may be from 0-255 characters in length.
This property sets or returns the value of a ScreenField. The value is set from or copied to a User Language string, and it may be from 0-255 characters in length.
==Syntax==
===Syntax terms===
<dl>
<dt>%sfield
<dd>A reference to an instance of a ScreenField object.
<dt>newvalue
<dd>The string value to assign to %sfield.
<dt>%string
<dd>A User Language string variable to contain the returned %sfield data.
</dl>


  %sfield:Value = newvalue
==Usage Notes==
  %string = %sfield:Value
 
Itemid syntax
 
; %sfield
: A reference to an instance of a ScreenField object.
 
; newvalue
: The string value to assign to %sfield.
 
: %string
: A User Language string variable to contain the returned %sfield data.
 
; Usage Notes


After a Read method (“Read function” on page 904) on the Screen object, you use the Value method to get any user-entered data for a non-protected field.
After a Read method (“Read function” on page 904) on the Screen object, you use the Value method to get any user-entered data for a non-protected field.

Revision as of 20:31, 18 March 2011

This property sets or returns the value of a ScreenField. The value is set from or copied to a User Language string, and it may be from 0-255 characters in length.

Syntax

Syntax terms

%sfield
A reference to an instance of a ScreenField object.
newvalue
The string value to assign to %sfield.
%string
A User Language string variable to contain the returned %sfield data.

Usage Notes

After a Read method (“Read function” on page 904) on the Screen object, you use the Value method to get any user-entered data for a non-protected field.

For an example using Value to set field display data, see “Screen class example”. For an example using Value to get user-entered data, see the example below.

See also the AddField method, whose Value parameter can set display data when the ScreenField is instantiated.