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 3: Line 3:
{{Template:Syntax list header|class=Record}}
{{Template:Syntax list header|class=Record}}
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="term">%outRecord</span><span class="literal"> =</span> <span class="term">record</span><span class="literal">:[[Copy (Record function)|Copy]]</span><span class="squareb">[</span><span class="literal">(</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><span class="squareb">]</span></p>
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top:1px solid;"><span class="term">%outRecord</span><span class="literal"> =</span> <span class="term">record</span><span class="literal">:[[Copy (Record function)|Copy]]</span><span class="squareb">[</span><span class="literal">(</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><span class="squareb">]</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):[[CurrentRecord (Record function)|CurrentRecord]]</span><span class="squareb">[</span><span class="literal">(</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">%record</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(Record In </span><span class="term">filOrGrp name</span><span class="literal">)</span><span class="squareb">]</span><span class="literal">:[[CurrentRecord (Record function)|CurrentRecord]]</span><span class="squareb">[</span><span class="literal">(</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><span class="squareb">]</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><span class="squareb">]</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">%outRecord</span><span class="literal"> =</span> <span class="term">record</span><span class="literal">:[[DeepCopy (Record function)|DeepCopy]]</span><span class="squareb">[</span><span class="literal">(</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">%outRecord</span><span class="literal"> =</span> <span class="term">record</span><span class="literal">:[[DeepCopy (Record function)|DeepCopy]]</span><span class="squareb">[</span><span class="literal">(</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><span class="squareb">]</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><span class="squareb">]</span></p>
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">%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>                           -
<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="squareb">[</span><span class="literal">%(Record In </span><span class="term">filOrGrp name</span><span class="literal">)</span><span class="squareb">]</span><span class="literal">:[[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">%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>                  -
<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="squareb">[</span><span class="literal">%(Record In </span><span class="term">filOrGrp name</span><span class="literal">)</span><span class="squareb">]</span><span class="literal">:[[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="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="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>
<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 21:53, 22 August 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 In filOrGrp name)]: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 In filOrGrp name)]:New( number, [lockStrength], - [LoopLockStrength= lockStrength])

%groupRecord = [%(Record In filOrGrp name)]: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])]