ScreenField methods syntax: Difference between revisions
m (Automatically generated page update) |
m (Automatically generated page update) |
||
Line 15: | Line 15: | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentBoolean</span><span class="literal"> =</span> <span class="term">sfield</span><span class="literal">:[[Modified (ScreenField property)|Modified]]</span> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentBoolean</span><span class="literal"> =</span> <span class="term">sfield</span><span class="literal">:[[Modified (ScreenField property)|Modified]]</span> | ||
<span class="term">sfield</span><span class="literal">:[[Modified (ScreenField property)|Modified]]</span> <span class="literal">= </span><span class="term">newBoolean</span></p> | <span class="term">sfield</span><span class="literal">:[[Modified (ScreenField property)|Modified]]</span> <span class="literal">= </span><span class="term">newBoolean</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%sfield</span><span class="literal"> =</span> <span class="literal">%(ScreenField):[[New (ScreenField constructor)|New]]</span></p> | |||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentBoolean</span><span class="literal"> =</span> <span class="term">sfield</span><span class="literal">:[[Numeric (ScreenField property)|Numeric]]</span> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentBoolean</span><span class="literal"> =</span> <span class="term">sfield</span><span class="literal">:[[Numeric (ScreenField property)|Numeric]]</span> | ||
<span class="term">sfield</span><span class="literal">:[[Numeric (ScreenField property)|Numeric]]</span> <span class="literal">= </span><span class="term">newBoolean</span></p> | <span class="term">sfield</span><span class="literal">:[[Numeric (ScreenField property)|Numeric]]</span> <span class="literal">= </span><span class="term">newBoolean</span></p> |
Revision as of 11:16, 1 July 2011
The syntax for each of the ScreenField class methods is shown below.
Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of ScreenField methods.
%currentFieldColor = sfield:Color sfield:Color = newFieldColor
%num = sfield:Column
%outSfield = sfield:DeepCopy
sfield:Delete
%currentHighlight = sfield:Highlight sfield:Highlight = newHighlight
%currentBoolean = sfield:Invisible sfield:Invisible = newBoolean
%currentNum = sfield:Itemid sfield:Itemid = newNum
%currentBoolean = sfield:Modified sfield:Modified = newBoolean
%sfield = %(ScreenField):New
%currentBoolean = sfield:Numeric sfield:Numeric = newBoolean
%currentBoolean = sfield:Protected sfield:Protected = newBoolean
%num = sfield:Row
%outsfield = sfield:Screen
sfield:SetCursor[( [position])]
%currentString = sfield:Value sfield:Value = newString
%num = sfield:Width