DataServer.RLock Method (Typed)
Lock a specific record in this data server for exclusive write access; other users can still make read-only reference to the record.
XSharp.VOSystemClasses (in XSharp.VOSystemClasses.dll) Version: 2.18
Syntax Request Example
VIRTUAL METHOD RLock(
nRecord AS LONG
) AS LOGIC
public virtual bool RLock(
- Type: Long
The ID (usually a record number) of the record to be locked. If specified, record locks held by the current process are retained. If not specified, all locks held by the current process are released and the current record is assumed.
TRUE if successful; otherwise, FALSE. Note that FALSE is returned even if the record was successfully locked but other record locks cannot be maintained.
When specified with an argument, RLock() does not release records locks held by the current process. Instead, it adds the newly locked record to the lock list.
|Some data servers cannot support the maintenance of multiple record locks or even the lock of a record other than the current one based on a record number.|See Also