Protected (ScreenField property): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Template:ScreenField:Protected subtitle}} | {{Template:ScreenField:Protected subtitle}} | ||
The <var>Protected</var> property sets or returns the <var>Protected</var> attribute for a <var>ScreenField</var>. A protected field does not allow user input, and is used for display only. | The <var>Protected</var> property sets or returns the <var>Protected</var> attribute for a <var>ScreenField</var>. A protected field does not allow user input, and is used for display only. Unprotected fields are used for user input. The <var>Protected</var> attribute is initially set for a field by the <var>[[AddField_(Screen_function)|AddField]]</var> method. | ||
==Syntax== | ==Syntax== | ||
Line 8: | Line 8: | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>%currentBoolean</th> | <tr><th>%currentBoolean</th> | ||
<td>A <var>[[Boolean_enumeration|Boolean enumeration]]</var> to get the current value of the the <var>Protected</var> attribute applicable to <var class="term">sfield</var>. Valid values are < | <td>A <var>[[Boolean_enumeration|Boolean enumeration]]</var> to get the current value of the the <var>Protected</var> attribute applicable to <var class="term">sfield</var>. Valid values are <var>True</var> and <var>False</var> (default).</td></tr> | ||
<tr><th>sfield</th> | <tr><th>sfield</th> | ||
Line 14: | Line 14: | ||
<tr><th>newBoolean</th> | <tr><th>newBoolean</th> | ||
<td>A <var>Boolean enumeration</var> to set the new value for the <var>Protected</var> attribute applicable to <var class="term">sfield</var>. Valid values are < | <td>A <var>Boolean enumeration</var> to set the new value for the <var>Protected</var> attribute applicable to <var class="term">sfield</var>. Valid values are <var>True</var> and <var>False</var> (default)</td></tr> | ||
</table> | </table> | ||
==See also== | ==See also== | ||
{{Template:ScreenField:Protected footer}} | {{Template:ScreenField:Protected footer}} |
Latest revision as of 19:51, 20 November 2012
Set or return the protected attribute for screenfield (ScreenField class)
The Protected property sets or returns the Protected attribute for a ScreenField. A protected field does not allow user input, and is used for display only. Unprotected fields are used for user input. The Protected attribute is initially set for a field by the AddField method.
Syntax
%currentBoolean = sfield:Protected sfield:Protected = newBoolean
Syntax terms
%currentBoolean | A Boolean enumeration to get the current value of the the Protected attribute applicable to sfield. Valid values are True and False (default). |
---|---|
sfield | A reference to an instance of a ScreenField object. |
newBoolean | A Boolean enumeration to set the new value for the Protected attribute applicable to sfield. Valid values are True and False (default) |