Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>q_status() - check printer queue for errors</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     q_status() - check printer queue for errors
  Usage:    <integer> = q_status()
  Params:   none
  Returns:  integer equal to the current status of the print
            queue, based on the following table:

                 Return    - Means
                 -1        - print queue not installed or DOS < 3.00
                 0         - no errors at this time
                 >= 1      - a number greater than zero signifies there
                             was an error, and this return value is
                             how many times the print.com program tried
                             to output the last character.

 ---------------------------------- Example ---------------------------------

                 if (q_status() > 0)
                      q_hold()
                      ? "Printer error #:"+str(prnstatus())
                      ? "Please correct, and press any key...."
                      inke(0)
                      q_restart()
                 endif

  Note:     You must have installed the DOS print.com program for the
            Q functions to work properly. Your DOS version also needs
            to be 3.00 or higher. See the q_submit() function for more
            information.


See Also: isqueue() q_cancel() q_delete() q_file() q_hold()

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