Harbour Reference Guide

 

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

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30