LockStrength (Record function)

From m204wiki
Revision as of 01:25, 8 November 2012 by JAL (talk | contribs)
Jump to navigation Jump to search

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