Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Guide To CA-Clipper - <b>blobrootunlock()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 BLOBROOTUNLOCK()
 Release the lock on a BLOB file's root area
------------------------------------------------------------------------------
 Syntax

     BLOBROOTUNLOCK() --> NIL

 Description

     Use BLOBROOTUNLOCK() to release a lock previously obtained using
     BLOBROOTLOCK().

     By default, this function operates on the currently selected work area.
     It can be made to operate on an unselected work area by specifying it
     within an aliased expression.

     Note:  The only functions that require the use of BLOBROOTLOCK() or
     BLOBROOTUNLOCK() are BLOBROOTGET() and BLOBROOTPUT().

 Examples

     .  This example illustrates how to properly lock and unlock the
        root area of a BLOB file for a database file opened in shared mode:

        FUNCTION GETSETTINGS()
           LOCAL aCustSettings

           // Open a customer file in shared mode
           USE customer NEW SHARED VIA DBFCDX

           IF BLOBROOTLOCK()
              aCustSettings := BLOBROOTGET()
              BLOBROOTUNLOCK()
           ELSE
              Alert("Could not obtain root lock of Customer;
                 file")
           ENDIF

           CLOSE

           RETURN aCustSettings


See Also: BLOBROOTLOCK()

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