DBRLOCK()
This function locks the record based on identity
Syntax
DBRLOCK([<xIdentity>]) --> lSuccess
Arguments
<xIdentity> Record identifier
Returns
DBRLOCK() returns a logical true (.T.) if lock was successful
Description
This function attempts to lock a record which is identified by <xIdentity> 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 <xIdentity> is not passed it will be assumed to lock the current active record/data item.
Examples
PROCEDURE Main() LOCAL x := 0 USE tests NEW FOR x := 1 TO reccount() IF ! DBRLOCK() DBUNLOCK() ENDIF NEXT USE
Compliance
Clipper
Files
Library is rdd
Seealso
DBUNLOCK(), DBUNLOCKALL(), FLOCK(), RLOCK()
Pingback: Harbour Database Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !