Command UNLOCK Foundation
Releases file and or record locks.
UNLOCK [ALL] UNLOCK [IN <nWorkArea> | <cAlias> ] UNLOCK RECORD <xRecordId> [IN <nWorkArea> | <cAlias> ]
The option ALL releases all file and record locks in all work areas. Without this option, only the locks in the current work area are released.
<nWorkArea> is a positive integer specifying the ordinal number of the work area being selected.
This argument is either a literal alias name or a character expression containing the alias name in parentheses. The alias name indicates the work area whose files are to be closed.
<xRecordID> is an optional record ID (for DBF files it is the record number). If specified, the record lock is released instead of the file lock.
The command UNLOCK removes all existing record and file locks in the current work area or in the work area as specified using the IN clause. It is only significant when files are open in the SHARED mode. UNLOCK releases the locks without setting any new ones (as is done by the functions FLock() and RLock()).
The functions DbUnlock() and DbUnlockAll() are the functional equivalents of the command UNLOCK.
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.