LockStrength (Record function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 6: Line 6:
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%ls</th>
<tr><th>%lockStrength</th>
<td>A declared enumeration object of type <var>LockStrength</var> to contain the returned value of ''%rec'''s locking. 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>An enumeration object of type <var>LockStrength</var> to contain the returned value of <var class="term">record</var>'s locking. 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>record</th>
<td>An instantiated <var>Record</var> object variable.
<td>A <var>Record</var> object.


</td></tr></table>
</td></tr></table>

Revision as of 11:53, 8 February 2012

Return lock strength of Record (Record class)

This method returns a LockStrength enumeration to indicate the locking of the Record object.

Syntax

%lockStrength = record:LockStrength

Syntax terms

%lockStrength An enumeration object of type LockStrength to contain the returned value of record's locking. 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 A Record object.

Usage notes

  • You can use this property to display the locking for a given Record object. Note the use of the ToString enumeration method to print the locking value:

    %grouprec = new(1, 'TESTPROC', %e) print %grouprec:lockstrength:toString

  • For more information about enumerations, see Enumerations.

See also