TESTLOCK()

TESTLOCK()

Top  Previous  Next

 

The TESTLOCK() function returns the state of a task lock.

 

 

Format

 

TESTLOCK(lock.num)

 

where

 

lock.numevaluates to the lock number in the range 0 to 63.

 

 

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