[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
+---------------------------------+
| UNLOCK |
+---------------------------------+
UNLOCK [IN <expN> | <expC> | ALL]
-----------------------------------
Releases record or file locks in FoxPro/LAN.
-----------------------------------
IN <expN> | <expC>
To release a record lock (or locks) or a file lock from a database in
another work area, include the work area number <expN>, or the database
alias <expC>. If you don't specify a work area or alias, UNLOCK
releases a record lock (or locks) or a file lock from a database in the
selected work area.
ALL
Releases all record or file locks in all work areas.
Record and file locks can only be removed from databases only by the
user who issued the locks. Databases opened for exclusive use cannot be
unlocked with this command.
UNLOCK with no arguments releases a record lock (or locks) or a file
lock from the database in the selected work area.
When relations exist between database files, releasing a record lock (or
locks) or a file lock from one of the databases does not release locks
from related records or files. You must explicitly release the record
or file locks in each of the related files. You can release all locks
on any related database files by issuing UNLOCK ALL (note that this will
also release locks in unrelated files).
+---------------------------------+
| Example |
+---------------------------------+
CLOSE ALL
SET REPROCESS TO AUTOMATIC
USE customer IN A
USE states IN B
? LOCK('customer')
? RLOCK('states')
UNLOCK IN customer
UNLOCK IN states
-----------------------------------
See Also: FLOCK(), LOCK(), RLOCK(), SET EXCLUSIVE
-----------------------------------
See Also:
FLOCK()
LOCK()
RLOCK()
SET EXCLUSIVE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson