DBRLOCK()

This function locks the record basedon identify

Syntax

DBRLOCK([<xIdentity>]) --> lSuccess

Arguments

<xIdentity> Record indetifier

Returns

DBRLOCK() returns a logical true (.T.) if lock was successful

Description

This function attempts to lock a record which is indentified by in the active data set.If the lock is successful the function will return a logical true (.T.) value;otherwise a logical false (.F.) will be returned.If is not passed it will be assumed to lock the current active record/data item.

Examples

FUNCTION Main()
LOCAL x:=0
USE Tests New
FOR x:=1 to reccount()
IF !DBRLOCK()
DBUNLOCK()
ENDIF
NEXT
USE

Status

Ready

Compliance

This function is CA-Clipper compliant

Files

Library is rdd

See Also