LockStrength (Record function)

From m204wiki
Revision as of 20:32, 15 April 2011 by JAL2 (talk | contribs) (Created page with "<span class="pageSubtitle"><section begin=dpl_desc/><section end=dpl_desc/></span> LockStrength function <p> <var>LockStrength</var> is a member of th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<section begin=dpl_desc/><section end=dpl_desc/>

LockStrength is a member of the Record class.

This non-settable property returns a LockStrength enumeration that indicates the locking of the Record object.

Syntax

%ls = %rec:LockStrength

Syntax Terms

%ls A declared enumeration object of type LockStrength to contain the returned value of %rec'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)".
%rec An instantiated Record object variable.

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.