LoopLockStrength (Recordset property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Undo revision 39703 by Dme (talk))
mNo edit summary
Line 1: Line 1:
{{Template:Recordset:LoopLockStrength subtitle}}
{{Template:Recordset:LoopLockStrength subtitle}}
To indicate the minimum lock strength for records processed
The <var>LoopLockStrength</var> property uses a <var>LockStrength</var> enumeration to indicate the minimum lock strength for records processed
in <var>For</var> loops on the <var>Recordset</var> object,
in <var>For</var> loops on the <var>Recordset</var> object.
<var>LoopLockStrength</var> uses a <var>LockStrength</var> enumeration.
For more information see [[Recordset class#LoopLockStrength for Recordsets|"LoopLockStrength for Recordsets"]].
For more information see [[Recordset class#LoopLockStrength for Recordsets|"LoopLockStrength for Recordsets"]].
==Syntax==
==Syntax==
Line 9: Line 8:
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%ls</th>
<tr><th>%ls</th>
<td>A declared enumeration object of type <var>LockStrength</var> to contain the returned value or to set the new value of ''%recSet'''s minimum lock strength on records in a loop on ''%recSet''.
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 (Recordset constructor)|"New (Recordset constructor)"]].
</td></tr>
<tr><th>%currentLoopLockStrength</th>
<tr><th>%currentLoopLockStrength</th>
<td>The <var>[[LockStrength enumeration|LockStrength]]</var> enumeration value of <var class="term">recordset</var>'s <var>LoopLockStrength</var> property. </td></tr>
<td>The <var>[[LockStrength enumeration|LockStrength]]</var> enumeration value of <var class="term">recordset</var>'s <var>LoopLockStrength</var> property. </td></tr>

Revision as of 20:32, 7 February 2012

Set or return minimum lock strength for Recordset records that are in For loops (Recordset class)

The LoopLockStrength property uses a LockStrength enumeration to indicate the minimum lock strength for records processed in For loops on the Recordset object. For more information see "LoopLockStrength for Recordsets".

Syntax

%currentLockStrength = recordset:LoopLockStrength recordset:LoopLockStrength = newLockStrength

Syntax terms

%ls
%currentLoopLockStrength The LockStrength enumeration value of recordset's LoopLockStrength property.
recordset A Recordset object.
newLoopLockStrength The LoopLockStrength enumeration value to assign to recordset's LoopLockStrength property.

Usage notes

  • The LoopLockStrength property is new as of Sirius Mods version 7.0.
  • If the returned locking value is assigned to an enumeration variable, use the ToString enumeration method. to print the value string.
  • For more information about enumerations, see "Enumerations".

See also