xHarbour Reference Documentation > Command Reference xHarbour Developers Network  

UNLOCK

Releases file and/or record locks in the current or all work areas

Syntax

UNLOCK [ALL]

Arguments

ALL
This option causes all locks be released in all work areas. Without this option, only the locks in the current work area are released.

Description

The UNLOCK command releases file and record locks in the current or all work areas previously set with RLock() or FLock().

Locking is required when a database is open in SHARED mode and changed data must to be written to a database file.

Info

See also:DbRUnlock(), DbUnlock(), DbUnlockAll(), FLock(), RLock(), SET RELATION, USE
Category: Database commands
Source:rdd\dbcmd.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe