Function DbUnlockAll() Foundation
Releases all file and record locks in all work areas.
DbUnlockAll() --> NIL
The return value of DbUnlockAll() is always NIL.
The database function DbUnlockAll() removes all existing record and file locks in all work areas. The function is only meaningful when files are open in SHARED mode.
The command UNLOCK ALL can be used instead of DbUnlockAll().
// In the example, a record is locked before it is
// marked as deleted. If the record could be locked,
// all record locks are released after the deletion.
PROCEDURE Main
USE Customer ALIAS Cust NEW SHARED
USE Invoice ALIAS Inv NEW SHARED
SELECT Cust
GOTO 10
IF Cust->( RLock() )
Cust->( DbDelete() )
? "Record No 10 is deleted"
ELSE
? "Record No 10 cannot be locked"
ENDIF
DbUnlockAll()
RETURN
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.