Difference between revisions of "ScreenField methods syntax"

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
m (Automatically generated page update)
 
Line 16: 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">%sfield</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(ScreenField)</span><span class="squareb">]</span><span class="literal">:[[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>

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