target(): Object;
The target method of the Lock class is used to obtain a reference to the object that is the target of a lock request.
The following example shows the use of the target method.
vars lock : Lock; locksArray : LockArray; begin create locksArray transient; system.getLocks(locksArray, 40); foreach lock in locksArray do //access the lock entry properties write lock.requestedBy.String; write lock.target.String; endforeach; locksArray.purge; delete locksArray; end;