Click or drag to resize

DataServer.RLock Method (Typed)

X#
Lock a specific record in this data server for exclusive write access; other users can still make read-only reference to the record.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOSystemClasses (in XSharp.VOSystemClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD RLock(
	nRecord AS LONG
) AS LOGIC
Request Example View Source

Parameters

nRecord
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.

Return Value

Type: Logic
TRUE if successful; otherwise, FALSE. Note that FALSE is returned even if the record was successfully locked but other record locks cannot be maintained.
Remarks
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.
Tip Tip
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