JavaScript Editor js editor     Web development 



Main Page

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



JavaScript Editor js editor     Web development 

©

©©