[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
PRINTREADY()
Determines if a particular printer is ready
------------------------------------------------------------------------------
Syntax
PRINTREADY([<nPrinter>]) --> lReady
Argument
<nPrinter> Designates which LPT device to test. A 1 corresponds to
LPT1, 2 is LPT2, and a 3 is LPT3. The default is LPT1(1).
Returns
PRINTREADY() returns a value of .T. when the printer is ready. In any
other case, PRINTREADY() returns .F..
Description
This function tests whether the printer is ready before you attempt to
print. This could help you avoid printer errors.
Example
In the following example, printing only occurs when the printer is
ready:
IF PRINTREADY(1)
*... // Print
ELSE
*... // Error message
ENDIF
See Also:
NUMPRINTER()
PRINTINIT()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson