LockStrength (Record function): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 9: | Line 9: | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>%lockStrength</th> | <tr><th>%lockStrength</th> | ||
<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>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> | ||
<tr><th>record</th> | <tr><th>record</th> | ||
Line 18: | Line 18: | ||
<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) |
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