Displays information about the current database.
DISPLAY DATABASE [TO PRINTER [PROMPT] | TO FILE FileName [ADDITIVE]] [NOCONSOLE]
- [TO PRINTER [PROMPT]
- Directs output about the current database to a printer. The PROMPT keyword clause displays a Print dialog box before printing starts.
- TO FILE FileName [ADDITIVE]]
- Directs output to a file specified by FileName. If the file already exists and SET SAFETY is ON, Visual FoxPro prompts you to decide whether to overwrite the file. The ADDITIVE keyword appends output to the end of the specified file. If you omit ADDITIVE, the contents of the file are overwritten.
- Suppresses output to the main Visual FoxPro window or to the active user-defined window.
To return additional information about the current database, use the DBGETPROP(В ) function. For more information, see DBGETPROP( ) Function.
The following example creates a database named
people. A table named
friends is created and is automatically added to the database. DISPLAY TABLES is used to display the tables in the database, and DISPLAY DATABASES is used to display information about the tables in the database.
CREATE DATABASE people CREATE TABLE friends (FirstName C(20), LastName C(20)) CLEAR DISPLAY TABLES && Displays tables in the database DISPLAY DATABASES && Displays table information