Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_lptstat() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_LPTSTAT()

 DESCRIPTION

 C_LPTSTAT() determines the status of the printer attached to the
 specified LPT port.

 SYNTAX

 C_LPTSTAT(port)

 PARAMETERS

 port (N) is the LPT port number where the printer is attached.
 port must be specified as a numeric where 1=LPT1, 2=LPT2, etc.

 RETURNS

 C_LPTSTAT() returns the status of the printer attached to the
 specified port as a numeric.  The status codes are as follows:

 STATUS    DESCRIPTION
 ------    -----------
 0         Printer selected and ready
 1         No paper
 2         Timed out
 3         IO error
 4         Printer acknowledge
 5         Printer not busy

 EXAMPLES

 if lptstatus(1) = 1
   ? "Printer has no paper"
 endif


See Also: C_LPTINIT() C_LPTWRITE() C_ISPRINT() C_COMSTAT()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson