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


Syntax:     FLOCK()

Purpose:    To lock the shared database file in USE in the current work
            area.

Returns:    A logical value.

            If an attempt to lock a database file in USE in the
            currently selected work area succeeds, FLOCK() returns true
            (.T.).  Otherwise it returns false (.F.).

Usage:      The file lock remains until you UNLOCK, CLOSE the DATABASE,
            or RLOCK().

            Note that Clipper does not automatically lock all work areas
            in the relation chain when you lock the current work area.
            Likewise, an UNLOCK has no affect on related work areas.

Library:    CLIPPER.LIB


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

   IF FLOCK()
      DELETE ALL
   ENDIF


See Also: SET EXCLUSIVE UNLOCK USE RLOCK() Fil_lock()

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