Syntax
DbUnlock() --> NILArguments
None.
Return value
NIL.
Description
DbUnlock() enumerates the current work area's record locks, releases them, and leaves the area, record pointer and file open. It affects no other work area and does not modify records.
Notes
It does not release a file lock made by FLock(). The area must be open; RDD unlock failures can raise an error. Use DbRUnlock() when only one lock should be released and DbUnlockAll() for every work area.
Example
PROCEDURE Main()
DbUseArea( .T., , "people.dbf", "People" )
DbRLock()
DbUnlock()
QOut( "Locks after unlock: " + LTrim( Str( Len( DbRLockList() ) ) ) )
DbCloseArea()
RETURNOutput