LoopLockStrength (Record property)

From m204wiki
Jump to navigation Jump to search

Set or return minimum lock strength for Record in For loops (Record class)

To indicate the minimum lock strength for records processed in For Record loops on the Record object, LoopLockStrength uses a LockStrength enumeration.

For more information see LoopLockStrength for Records.


%currentLockStrength = record:LoopLockStrength record:LoopLockStrength = newLockStrength

Syntax terms

%currentLockStrength A declared Enumeration object of type LockStrength to contain the returned value of record's minimum lock strength on records in a loop on record. 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 An instantiated Record object variable.
newLockStrength A declared enumeration object of type LockStrength to assign as the minimum lock strength on records in a loop on record. The possible enumeration values are the same as those described above for %currentLockStrength.

Usage notes

  • If the returned locking value is assigned to an enumeration variable, use the ToString enumeration method to print the value string.

See also