Partager via


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.

Remarks

To return additional information about the current database, use the DBGETPROP( ) function. For more information, see DBGETPROP( ) Function.

Example

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

See Also

Reference

DISPLAY Command

LIST DATABASE Command

DELETE DATABASE Command

DISPLAY FILES Command

Other Resources

Commands (Visual FoxPro)

Language Reference (Visual FoxPro)