Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) reference Guid - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The 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: DBUNLOCK() DBUNLOCKALL() FLOCK() RLOCK()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson