DBD()

From Lianjapedia
Revision as of 13:57, 1 March 2019 by Yvonne.milne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Function to return the data dictionary file name

Syntax

DBD([<workarea | alias>])

See Also

ALIAS(), DBF(), FCOUNT(), FIELD(), FILTER(), INDEXKEY(), NDX(), SELECT(), SET FILECASE, SET FULLPATH, WORKAREA()

Description

The DBD() function returns the file name of the currently active data dictionary or an empty string if none is active. If the optional <workarea | alias> is specified, then the function will return the data dictionary file name from the specified workarea. The DBDF() function returns a character string, including the file extension. If the command FULLPATH is set ON, then the DBD() function will return the disk and directory name with the data dictionary file name.

Example

open database southwind
use customers in 1
? dbd()
CUSTOMERS.DBD
? dbd("customers")
CUSTOMERS.DBD
? dbd(1)
CUSTOMERS.DBD
? dbd(2)  // returns empty string