Releases the lock, making it available for the next agent requesting it.
CodeUnlock (lockID )
lockID
ID of lock to be unlocked (assigned by LotusScript through CreateLock)
CodeUnLock returns TRUE if the lock was successfully released.
Releases the lock specified by ID. Bear in mind that CodeLock and CodeUnLock should always be done in pairs; failure to adhere to this practice will lead to unexpected results.
Extended examples: lock functions