TESTLOCK() |
|
|
The TESTLOCK() function returns the state of a task lock.
Format
TESTLOCK(lock.num)
where
The TESTLOCK() function enables programs to test which user, if any, owns a specific task lock. If the lock is currently owned by a QM user, the TESTLOCK() function returns their user number. If the lock is available, zero is returned.
See also: CLEAR.LOCKS, LIST.LOCKS, LOCK (Command), LOCK (QMBasic), UNLOCK |