SET DEVICE Command
Directs output from @ ... SAY to the screen, a printer, or a file.
SET DEVICE TO SCREEN | TO PRINTER [PROMPT] | TO FILE FileName
- TO SCREEN
- Directs @ ... SAY output to the main Visual FoxPro window or to the active user-defined window.
- TO PRINTER [PROMPT]
- Directs @ ... SAY output to the printer. A page eject is issued when the coordinates in @ ... SAY specify a location on the page higher than the location specified by the coordinates in the previous @ ... SAY.
You can include the optional PROMPT clause to display a dialog box before printing starts. In this dialog box, the user can adjust printer settings, including the number of copies to print and page numbers. The currently installed printer driver determines which printer settings the user can adjust. Place PROMPT immediately after TO PRINTER.
- TO FILE FileName
- Specifies a file to which @ ... SAY sends output.
@ ... SAY output can be sent to the main Visual FoxPro window, the active user-defined window, the printer, or a file.