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

Syntax:     PRINTREADY([<expN>])

Arguments:  <expN> denotes which LPT device to test.  A 1 corresponds
            to LPT1:, 2 to LPT2: and 3 to LPT3:.

Returns:    A numeric value.
            (.T.) is returned if the printer is ready, otherwise (.F.) is
            returned.

Usage:      To test whether everthing is ready for printing before any
            printout is attempted.  This is one of the best ways to stop
            errors before they happen.

Library:    CT1.LIB


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

Examples:   * The printing will only take place if the
            * printer is ready.
            IF PRINTREADY(1)
               ...                              && Print

            ELSE
               ...                              && Fault message

            ENDIF



See Also: NUMPRINTER() PRINTINIT()

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