Export (0) Print
Expand All
Expand Minimize
1 out of 1 rated this helpful - Rate this topic

DISPLAY DATABASE Command

Displays information about the current database.


DISPLAY DATABASE [TO PRINTER [PROMPT] | TO FILE FileName [ADDITIVE]] [NOCONSOLE]

Parameters

[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.

[NOCONSOLE]

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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.