RDD

Used()

Determine whether a database file is open

Syntax

Signature
Used() --> lDbfOpen

Arguments

None.

Return value

.T. when the current work area is open.

Description

Used() reports whether the current work area contains an open database file.

Notes

It does not change the selected area.

Example

Used.prg
PROCEDURE Main()

   DbUseArea( .T., , "people.dbf", "People" )
   QOut( "Used: " + IIF( Used(), "YES", "NO" ) )
   DbCloseArea()

RETURN

Output

See also