[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 USED()
 Determine whether a database file is in USE
------------------------------------------------------------------------------
 Syntax

     USED() --> lDbfOpen

 Returns

     USED() returns true (.T.) if there is a database file in USE; otherwise,
     it returns false (.F.).


 Description

     USED() is a database function that determines whether there is a
     database file in USE in a particular work area.  By default, USED()
     operates on the currently selected work area.  It will operate on an
     unselected work area if you specify it as part of an aliased expression.

 Examples

     .  This example determines whether a database file is in USE in
        the current work area:

        USE Customer NEW
        ? USED()               // Result: .T.
        CLOSE
        ? USED()               // Result: .F.

 Files   Library is CLIPPER.LIB.


See Also: SELECT SELECT() USE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson