LoopLockStrength (Record property): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (→Syntax terms) |
||
Line 10: | Line 10: | ||
<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 | <td>A declared enumeration object of type <var>LockStrength</var> to contain the returned 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></tr> | </td></tr> | ||
<tr><th>%rec</th> | <tr><th>%rec</th> | ||
<td>An instantiated <var>Record</var> object variable. | <td>An instantiated <var>Record</var> object variable. | ||
<tr><th>newLockStrength</th> | |||
<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== | ==Usage notes== | ||
<ul> | <ul> |
Revision as of 23:51, 26 April 2011
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
%ls | A declared enumeration object of type LockStrength to contain the returned value of %rec's minimum lock strength on records in a loop on %rec. 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)". |
---|---|
%rec | 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.
- For more information about enumerations, see Enumerations.