xHarbour Reference Documentation > Function Reference |
Applies locks to a database file or record with timeout.
NetLock( <nType> , ; [<lReleaseLocks>], ; [<nSeconds>] ) --> lSuccess
Types for locks in a network
Constant | Value | Description |
---|---|---|
NET_RECLOCK | 1 | Obtains a record lock. |
NET_FILELOCK | 2 | Obtains a file lock. |
NET_APPEND | 3 | Adds a new record. |
The function returns .T. (true) when the requested operation is successfully executed, otherwise .F. (false) is returned.
NetLock() is a utility function used by NetAppend(), NetFileLock() and NetRecLock() to obtain different locks for a database open in shared mode.
See also: | NetAppend(), NetFileLock(), NetRecLock() |
Category: | Database functions , Network functions , xHarbour extensions |
Header: | TTable.ch |
Source: | rtl\ttable.prg |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com