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>used()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USED()


Syntax:     USED()

Purpose:    To determine if a database file is in USE in the current
            work area.

Returns:    A logical value.

            USED() returns true (.T.) if there is a database file in USE
            in the current work area, false (.F.) if not.

Library:    CLIPPER.LIB


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

   SET EXCLUSIVE OFF
   SELECT 1
   USE Dbf1
   IF USED()
      SET INDEX TO Ntx1
   ELSE
      ? "Unable to USE file..."
      INKEY(0)
   ENDIF


See Also: SELECT USE NETERR() SELECT()

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