Compartir a través de


PRINTSTATUS( ) Function

Returns true (.T.) if the printer or print device is online; otherwise, false (.F.) is returned.

PRINTSTATUS( )

Return Values

Logical

Remarks

PRINTSTATUS( ) is similar to SYS(13), except SYS(13) returns READY instead of true (.T.) or OFFLINE instead of false (.F.).

In Visual FoxPro, PRINTSTATUS( ) always returns true (.T.) if the printer is connected through the Windows Control Panel.

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

SET DEVICE | SET PRINTER | SYS(13) – Printer Status | PRINTJOB ... ENDPRINTJOB Command