LockStrength (Record function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
This method returns a <var>LockStrength</var> enumeration
This method returns a <var>LockStrength</var> enumeration
to indicate the locking of the <var>Record</var> object.
to indicate the locking of the <var>Record</var> object.
==Syntax==
==Syntax==
{{Template:Record:LockStrength syntax}}
{{Template:Record:LockStrength syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%lockStrength</th>
<tr><th>%lockStrength</th>
<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>An <var>[[Enumerations|Enumeration]]</var> 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)]].</td></tr>
</td></tr>
 
<tr><th>record</th>
<tr><th>record</th>
<td>A <var>Record</var> object.
<td>A <var>Record</var> object.</td></tr>
</table>


</td></tr></table>
==Usage notes==
==Usage notes==
<ul>
<ul>
<li>You can use this property to display the locking for a given <var>Record</var> object.
<li>You can use this property to display the locking for a given <var>Record</var> object.
Note the use of the <var>[[ToString]]</var> enumeration method
Note the use of the <var>[[Enumerations#ToString property|ToString]]</var> enumeration method
to print the locking value:
to print the locking value:
<p class="code"> %grouprec = new(1, 'TESTPROC', %e)
<p class="code">%grouprec = new(1, 'TESTPROC', %e)
print %grouprec:lockstrength:toString
print %grouprec:lockstrength:toString
</p>
</p>
<li>For more information about enumerations, see [[Enumerations]].
</ul>
</ul>
==See also==
==See also==
{{Template:Record:LockStrength footer}}
{{Template:Record:LockStrength footer}}

Latest revision as of 22:19, 2 September 2014

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

See also