Returns the status of the printer. Included for backward compatibility.
PRINTSTATUS( ) |
Return Value
Logical value. For versions of Visual FoxPro running on Windows, PRINTSTATUS( ) always returns True (.T.) if the printer is connected through the Windows Control Panel.
In prior versions, if the printer or print device is online, PRINTSTATUS( ) returns True (.T.); otherwise, it returns False (.F.).
Remarks
PRINTSTATUS( ) functions similarly to SYS(13). For more information, see SYS(13) - Printer Status.
Example
Copy Code | |
|---|---|
? PRINTSTATUS( ) *** Program Example *** STORE PRINTSTATUS( ) TO glReady IF NOT glReady WAIT 'Make sure printer is attached and turned on!' WINDOW ELSE WAIT 'Printer is ready!' WINDOW ENDIF | |
See Also
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08Send feedback on this topic to the VFPX Help file project team.
2009-2017 Placed under Creative Commons licensing by Microsoft Corporation.