LIST TABLES Command
Displays without pausing all tables and information about the tables contained in the current database.
- TO PRINTER [PROMPT]
Directs the information returned from LIST TABLES to a printer.
You can include PROMPT to display a Print dialog box before printing starts. Place the PROMPT keyword immediately after TO PRINTER.
- TO FILE FileName
Directs output from LIST TABLES to the disk file specified with FileName. If the file already exists and SET SAFETY is ON, Visual FoxPro displays a prompt asking if you want to overwrite the file.
Appends to the end of the named file. If you omit ADDITIVE, then the file is overwritten with the value of the expression.
Suppresses output to the main Visual FoxPro window or to the active user-defined window.
The following example opens the customer table in the testdata database. LIST TABLES is used to list information about the tables in the database.
CLOSE DATABASES SET PATH TO (HOME(2) + 'data\') && Sets path to database OPEN DATABASE testdata && Open testdata database CLEAR LIST TABLES && Lists information about tables in the database