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_isprint() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_ISPRINT()

 DESCRIPTION

 C_ISPRINT() checks whether a specified port and the printer
 attached to the port are ready for printing.  This can be used to
 check an LPT or a COM port and any printer (dot matrix, laser, etc.)
 attached to it.

 SYNTAX

 C_ISPRINT(port [,delay] [,count])

 PARAMETERS

 port (C) is the name of the LPT or COM port number and the attached
 printer to check.  Specify one of the full port names as follows:
 LPT1, LPT2, COM1, COM2, etc.  If port is not specified, LPT1 is
 checked.

 delay (N) is the number of seconds to delay after checking a COM
 port before checking it again.  The delay parameter allows the wait
 to be increased if a time-out keeps occurring on a COM device.  If
 delay is not specified, the default of 1 second is used.

 count (N) is the number of times a COM port should be checked
 before returning the status.  The count parameter allows the times
 to check to be increased if a time-out keeps occurring on a COM
 device.  If count is not specified, the default of 3 times is used.

 RETURNS

 C_ISPRINT() returns true (.T.) if the specified port and the
 attached printer are ready for printing.  C_ISPRINT returns false
 (.F.) if the port is not ready or the printer is not ready.

 EXAMPLES

 if !c_isprint()            && Check LPT1 port/printer
   ? "Printer Not Ready"
 endif
 ...
 ...
 if !c_isprint("COM1")      && Check COM1 port/printer
   ? "Printer Not Ready"
 endif
 ...
 ...
 if !c_isprint("COM1",2,4)  && Check COM1 port/printer
   ? "Printer Not Ready"    && Wait 2 seconds each time
 endif                      && and try 4 times.


See Also: C_LPTSTAT() C_COMSTAT() C_ISLPT() C_ISCOM() C_ISDEVICE()

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