Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Clipper Tools One Guide - <b>printerror()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PRINTERROR()

Syntax:     PRINTERROR()

Returns:    A numeric value.
            PRINTERROR() returns the code of the error which last
            occurred in the printer output.

Usage:      PRINTERROR() can be used to determine why the last print
            output failed.  This provides the facility to determine the cause
            of the error in the Clipper error system and to react
            accordingly.

Note:       The error code (127) is returned if the user aborts printer
            output by pressing Ctrl-Break.

            This table shows the possible codes and their definition.

             Code           Definition
             ----           ----------
                0           No error occurred
                5           Access refused
                6           Invalid handle
              127           Discontinued by Ctrl-Break



Library:    CT1.LIB


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

Examples:   status = PRINTERROR()

            IF status = 127
               ? "Printing process discontinued by the user."
            ENDIF




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