CodeLockCheck function (LotusScript® Language)

Returns the number of agents waiting for the the specified lock, plus 1.

Syntax

CodeLockCheck ( lockID )

Elements

lockID

ID of lock to be checked (assigned by LotusScript® through CreateLock)

Return values

A Long value indicating the sum of the agents that have the lock and are waiting for the lock.

Usage

A sample return value of 4 would mean that one agent has the specified lock and three other agents are waiting for it. Zero indicates the lock is not locked.