JavaScript Editor js editor     Web development 



Main Page

Returns true (.T.) if the specified database is open.

DBUSED(cDatabaseName)

Parameters

cDatabaseName


Specifies the name of the database for which DBUSED(В ) returns a logical value indicating whether or not the database is open.

Return Value

Logical

Remarks

DBUSED(В ) returns true (.T.) if the specified database is open; otherwise, it returns false (.F.).

Example

The following example opens the TESTDATA database, and then uses DBUSED(В ) to determine if the TESTDATA database and a database named TEST are open.

В Copy Code
CLOSE DATABASES
OPEN DATABASE (HOME(2) + 'Data\testdata')

CLEAR
? 'Testdata database open? '
?? DBUSED('testdata')     && Displays .T.
? 'Test database open? '
?? DBUSED('test')     && Displays .F.

See Also



JavaScript Editor js editor     Web development