Share via


PRINTSTATUS( ) Function

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

? 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

Reference

SET PRINTER Command

SET DEVICE Command

SYS(13) - Printer Status

PRINTJOB ... ENDPRINTJOB Command

Other Resources

Functions