
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>printready()</b>
[<<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()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson