LoopLockStrength (RecordsetCursor property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<span class="pageSubtitle"><section begin=dpl_desc/><section end=dpl_desc/></span>
{{Template:RecordsetCursor:LoopLockStrength subtitle}}
[[Category:RecordsetCursor methods|LoopLockStrength property]]
<p>
<var>LoopLockStrength</var> is a member of the <var>[[RecordsetCursor class|RecordsetCursor]]</var> class.
</p>


This settable property contains a <var>LockStrength</var> enumeration
This settable property contains a <var>LockStrength</var> enumeration
Line 11: Line 7:
[[RecordsetCursor class#LoopLockStrength for RecordsetCursors|"LoopLockStrength for RecordsetCursors"]].
[[RecordsetCursor class#LoopLockStrength for RecordsetCursors|"LoopLockStrength for RecordsetCursors"]].
==Syntax==
==Syntax==
<p class="syntax">%ls = %rscursor:LoopLockStrength
{{Template:RecordsetCursor:LoopLockStrength syntax}}
 
%rscursor:LoopLockStrength = %ls
</p>
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
Line 25: Line 18:


</td></tr></table>
</td></tr></table>
==Usage Notes==
==Usage notes==
<ul>
<ul>
<li>This property is only available in <var class="product">Sirius Mods</var> 7.0 and later.
<li>This property is only available in <var class="product">Sirius Mods</var> 7.0 and later.
Line 36: Line 29:
<li>For more information about enumerations, see [[Enumerations]].
<li>For more information about enumerations, see [[Enumerations]].
</ul>
</ul>
==See also==
{{Template:RecordsetCursor:LoopLockStrength footer}}

Revision as of 22:48, 26 April 2011

Set or return minimum lock strength of records in For Record At loops (RecordsetCursor class)


This settable property contains a LockStrength enumeration that indicates the minimum lock strength for records processed in For Record At loops on the RecordsetCursor object. For more information, see "LoopLockStrength for RecordsetCursors".

Syntax

%currentLockStrength = recordsetCursor:LoopLockStrength recordsetCursor:LoopLockStrength = newLockStrength

Syntax terms

%ls A declared enumeration object of type LockStrength to contain the returned value or to set the new value of %rscursor's minimum lock strength on records in a loop on %rscursor.

The enumeration values (shared properties) that may be returned (None, Share, or Exclusive), correspond to standard Model 204 record-locking levels, as described in "Cursor (Recordset constructor)".

%rscursor An instantiated RecordsetCursor object variable.

Usage notes

  • This property is only available in Sirius Mods 7.0 and later.
  • This property may only be set for cursors on Recordset objects. An attempt to set it for a cursor on a SortedRecordset object will result in request cancellation.
  • 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