ScreenField methods syntax: Difference between revisions
m (Automatically generated page update) |
m (Automatically generated page update) |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
<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">%number</span><span class="literal"> =</span> <span class="term">sfield</span><span class="literal">:[[Column (ScreenField property)|Column]]</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">%number</span><span class="literal"> =</span> <span class="term">sfield</span><span class="literal">:[[Column (ScreenField property)|Column]]</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">%outSfield</span><span class="literal"> =</span> <span class="term">sfield</span><span class="literal">:[[DeepCopy (ScreenField function)|DeepCopy]]</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">%outSfield</span><span class="literal"> =</span> <span class="term">sfield</span><span class="literal">:[[DeepCopy (ScreenField function)|DeepCopy]]</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">:[[DeepDiscard (ScreenField subroutine)|DeepDiscard]]</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">:[[Delete (ScreenField subroutine)|Delete]]</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">:[[Delete (ScreenField subroutine)|Delete]]</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">%currentHighlight</span><span class="literal"> =</span> <span class="term">sfield</span><span class="literal">:[[Highlight (ScreenField property)|Highlight]]</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">%currentHighlight</span><span class="literal"> =</span> <span class="term">sfield</span><span class="literal">:[[Highlight (ScreenField property)|Highlight]]</span> | ||
Line 15: | Line 16: | ||
<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">%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> |
Latest revision as of 19:19, 23 August 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
%number = sfield:Column
%outSfield = sfield:DeepCopy
sfield:DeepDiscard
sfield:Delete
%currentHighlight = sfield:Highlight sfield:Highlight = newHighlight
%currentBoolean = sfield:Invisible sfield:Invisible = newBoolean
%currentNumber = sfield:Itemid sfield:Itemid = newNumber
%currentBoolean = sfield:Modified sfield:Modified = newBoolean
%currentBoolean = sfield:Numeric sfield:Numeric = newBoolean
%currentBoolean = sfield:Protected sfield:Protected = newBoolean
%number = sfield:Row
%screen = sfield:Screen
sfield:SetCursor[( [position])]
%currentString = sfield:Value sfield:Value = newString
%number = sfield:Width