# USED()

Checks whether a database is in use in a work area

Syntax

  USED() --> lDbfOpen

Arguments

  None.

Returns

  <lDbfOpen> True is a database is Used;otherwise False

Description

  This function returns a logical true (.T.) if a database file is in USE in the current or designated work area. If no alias is specified along with this function , it will default to the currently selected work area.

Examples

          Use TESTS NEW
          USE Names New
          ? USED()    // .T.
          ? TESTS->(USED()) //.t.
          CLOSE
          ? USED()  // .F.
          Select TESTS
          ? USED() //.T.

Status

  Ready

Compliance

  This function is Ca-clipper Compliant

Files

  Library is rdd

See Also

- ALIAS()
- SELECT()