Displays the names of procedures stored in the current database.
DISPLAY PROCEDURES [TO PRINTER [PROMPT] | TO FILE FileName [ADDITIVE]] [NOCONSOLE] |
Parameters
- TO PRINTER [PROMPT]
- Directs information returned from DISPLAY PROCEDURES 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 DISPLAY PROCEDURES to the 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.
- ADDITIVE
- Appends to the end of the named file. If you omit ADDITIVE, then the file is overwritten with the value of the expression.
- NOCONSOLE
- Suppresses output to the main Visual FoxPro window or to the active user-defined window.
Remarks
Stored procedures are created with APPEND PROCEDURES, COPY PROCEDURES, or MODIFY PROCEDURE.
Example
The following example opens the testdata
database, and uses DISPLAY PROCEDURES to display the stored procedures (if any) in the database. If there are no stored procedures in the database, you can run the example for the APPEND PROCEDURES Command topic to add a procedure to the database.
В | Copy Code |
---|---|
CLOSE DATABASES OPEN DATABASE (HOME(2) + 'Data\testdata') CLEAR DISPLAY PROCEDURES && Displays stored procedures in the database |