LoopLockStrength (Record property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Created page with "<span class="pageSubtitle"><section begin=dpl_desc/><section end=dpl_desc/></span> LoopLockStrength property <p> <var>LoopLockStrength</var> is a memb...")
 
mNo edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<span class="pageSubtitle"><section begin=dpl_desc/><section end=dpl_desc/></span>
{{Template:Record:LoopLockStrength subtitle}}
[[Category:Record methods|LoopLockStrength property]]
To indicate the minimum lock strength for records processed
<p>
in <var>For Record</var> loops on the <var>Record</var> object,
<var>LoopLockStrength</var> is a member of the <var>[[Record class|Record]]</var> class.
<var>LoopLockStrength</var> uses a <var>LockStrength</var> enumeration.
</p>
 
For more information see [[Record class#LoopLockStrength for Records|LoopLockStrength for Records]].


This settable property returns a <var>LockStrength</var> enumeration
that indicates the minimum lock strength for records processed
in <var>For Record</var> loops on the <var>Record</var> object.
For more information see [[Record class#LoopLockStrength for Records|"LoopLockStrength for Records"]].
==Syntax==
==Syntax==
<p class="syntax">%ls = %rec:LoopLockStrength
{{Template:Record:LoopLockStrength syntax}}


%rec:LoopLockStrength = %ls
===Syntax terms===
</p>
===Syntax Terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%ls</th>
<tr><th>%currentLockStrength</th>
<td>A declared enumeration object of type <var>LockStrength</var> to contain the returned value or to set the new value of ''%rec'''s minimum lock strength on records in a loop on ''%rec''. The enumeration values (shared properties) that may be returned (<var>None</var>, <var>Share</var>, or <var>Exclusive</var>), correspond to standard <var class="product">Model 204</var> record-locking levels, as described in [[New (Record constructor)|"New (Record constructor)"]].
<td>A declared <var>[[Enumerations|Enumeration]]</var> object of type <var>LockStrength</var> to contain the returned value of <var class="term">record</var>'s minimum lock strength on records in a loop on <var class="term">record</var>. The enumeration values (shared properties) that may be returned (<var>None</var>, <var>Share</var>, or <var>Exclusive</var>), correspond to standard <var class="product">Model 204</var> record-locking levels, as described in [[New (Record constructor)]].</td></tr>
</td></tr>
 
<tr><th>%rec</th>
<tr><th>record</th>
<td>An instantiated <var>Record</var> object variable.
<td>An instantiated <var>Record</var> object variable.


</td></tr></table>
<tr><th>newLockStrength</th>
==Usage Notes==
<td>A declared enumeration object of type <var>LockStrength</var> to assign as the minimum lock strength on records in a loop on <var class="term">record</var>.
The possible enumeration values are the same as those described above for <var class="term">%currentLockStrength</var>.</td></tr>
</table>
 
==Usage notes==
<ul>
<ul>
<li>If the returned locking value is assigned to an enumeration variable,
<li>If the returned locking value is assigned to an enumeration variable,
use the <var>[[ToString]]</var> enumeration method
use the <var>[[Enumerations#ToString property|ToString]]</var> enumeration method
to print the value string.
to print the value string.
<li>For more information about enumerations, see [[Enumerations]].
</ul>
</ul>
==See also==
{{Template:Record:LoopLockStrength footer}}

Latest revision as of 22:20, 2 September 2014

Set or return minimum lock strength for Record in For loops (Record class)

To indicate the minimum lock strength for records processed in For Record loops on the Record object, LoopLockStrength uses a LockStrength enumeration.

For more information see LoopLockStrength for Records.

Syntax

%currentLockStrength = record:LoopLockStrength record:LoopLockStrength = newLockStrength

Syntax terms

%currentLockStrength A declared Enumeration object of type LockStrength to contain the returned value of record's minimum lock strength on records in a loop on record. The enumeration values (shared properties) that may be returned (None, Share, or Exclusive), correspond to standard Model 204 record-locking levels, as described in New (Record constructor).
record An instantiated Record object variable.
newLockStrength A declared enumeration object of type LockStrength to assign as the minimum lock strength on records in a loop on record. The possible enumeration values are the same as those described above for %currentLockStrength.

Usage notes

  • If the returned locking value is assigned to an enumeration variable, use the ToString enumeration method to print the value string.

See also