C5_USED

 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



2 responses to “C5_USED

  1. Pingback: C5_SELECT | Viva Clipper !

  2. Pingback: C5_Database Functions | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.