Lock a specific record in this data server for exclusive write access; other users can still make read-only reference to the record.
VOSystemClasses (in VOSystemClasses.dll) Version: 2.7
Syntax Request Example
VIRTUAL METHOD RLOCK(
nRecord AS USUAL := NIL
) AS USUAL
public virtual Usual RLOCK(
Usual nRecord = null
- nRecord (Optional)
- Type: Usual
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