Record methods syntax: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
 
m (Automatically generated page update)
Line 12: Line 12:
<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">%currentLockStrength</span><span class="literal"> =</span> <span class="term">record</span><span class="literal">:[[LoopLockStrength (Record property)|LoopLockStrength]]</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">%currentLockStrength</span><span class="literal"> =</span> <span class="term">record</span><span class="literal">:[[LoopLockStrength (Record property)|LoopLockStrength]]</span>
<span class="term">record</span><span class="literal">:[[LoopLockStrength (Record property)|LoopLockStrength]]</span> <span class="literal">= </span><span class="term">newLockStrength</span></p>
<span class="term">record</span><span class="literal">:[[LoopLockStrength (Record property)|LoopLockStrength]]</span> <span class="literal">= </span><span class="term">newLockStrength</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">%record</span><span class="literal"> =</span> <span class="literal">%(Record):[[New (Record constructor)|New]]</span><span class="literal">(</span> <span class="term" title="Number">number</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="LockStrength">lockStrength</span><span class="squareb">]</span><span class="comma">,</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">%fileRecord</span><span class="literal"> =</span> <span class="literal">%(Record):[[New (Record constructor)|New]]</span><span class="literal">(</span> <span class="term" title="Number">number</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="LockStrength">lockStrength</span><span class="squareb">]</span><span class="comma">,</span>                           -
                        <span class="squareb">[</span><span class="literal" title="LockStrength">LoopLockStrength=</span> <span class="term" title="LockStrength">lockStrength</span><span class="squareb">]</span><span class="literal">)</span></p>
                            <span class="squareb">[</span><span class="literal" title="LockStrength">LoopLockStrength=</span> <span class="term" title="LockStrength">lockStrength</span><span class="squareb">]</span><span class="literal">)</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">%record</span><span class="literal"> =</span> <span class="literal">%(Record):[[New (Record constructor)|New]]</span><span class="literal">(</span> <span class="term" title="Number">number</span><span class="comma">,</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="LockStrength">lockStrength</span><span class="squareb">]</span><span class="comma">,</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">%groupRecord</span><span class="literal"> =</span> <span class="literal">%(Record):[[New (Record constructor)|New]]</span><span class="literal">(</span> <span class="term" title="Number">number</span><span class="comma">,</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="LockStrength">lockStrength</span><span class="squareb">]</span><span class="comma">,</span>                 -
                        <span class="squareb">[</span><span class="literal" title="LockStrength">LoopLockStrength=</span> <span class="term" title="LockStrength">lockStrength</span><span class="squareb">]</span><span class="literal">)</span></p>
                              <span class="squareb">[</span><span class="literal" title="LockStrength">LoopLockStrength=</span> <span class="term" title="LockStrength">lockStrength</span><span class="squareb">]</span><span class="literal">)</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">record</span><span class="literal">:[[PAI (Record subroutine)|PAI]]</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">record</span><span class="literal">:[[PAI (Record subroutine)|PAI]]</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">record</span><span class="literal">:[[PrintAllInformation (Record subroutine)|PrintAllInformation]]</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">record</span><span class="literal">:[[PrintAllInformation (Record subroutine)|PrintAllInformation]]</span></p>

Revision as of 20:37, 20 April 2011

The syntax for each of the Record 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 Record methods.

%outRecord = record:Copy[( [lockStrength], [LoopLockStrength= lockStrength])]

%record = %(Record):CurrentRecord[( [lockStrength], - [LoopLockStrength= lockStrength])]

%outRecord = record:DeepCopy[( [lockStrength], - [LoopLockStrength= lockStrength])]

%string = record:FileName

%boolean = record:IsUpdated

%lockStrength = record:LockStrength

%currentLockStrength = record:LoopLockStrength record:LoopLockStrength = newLockStrength

%fileRecord = %(Record):New( number, [lockStrength], - [LoopLockStrength= lockStrength])

%groupRecord = %(Record):New( number, string, [lockStrength], - [LoopLockStrength= lockStrength])

record:PAI

record:PrintAllInformation

%number = record:RecordNumber

%string = record:ToString

%doc = record:ToXmlDoc[( [AttributeValues= boolean], - [AttributeNames= boolean], [NamesToLower= boolean], - [AllowUnreversible= boolean], - [CodepageTable= boolean], [AllowNull= boolean])]