Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- MICROSYS C & Clipper Functions - <b>recloc()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
recloc()


Syntax:     recloc(<expN>)

Purpose:    Lock database record

Arguments:  <expN> is the number of attempts at locking a record

Returns:    A Logical Value

Note:       If 0 is used as a parameter recloc() will function
            like rlock()

Library:    TC_SYS.LIB

----------------------------------- Example ----------------------------------

   nDbf := select()

   if( dbopen("tc_mas",.t.) )
       dbseek("7139463867")
       if( found() )
           if( !recloc(3) )
               use
               qout("Unable to lock record!")
               select(nDbf)
               retu(.f.)
           else
               ..........
               ..........
               ..........
               ..........
           endi
       else
           ..........
           ..........
           ..........
           ..........
       endi
   else
       ..........
       ..........
       ..........
       ..........
   endi

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