[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
SPOOLADD()
Appends a file to the print queue.
------------------------------------------------------------------------------
Syntax
SPOOLADD(<nFile>) --> lAppended
Argument
<nFile> Designates a file to add to the print spool queue.
Returns
SPOOLADD() returns .T. when the file is successfully added to the spool
queue.
Description
SPOOLLADD() passes a new file to the spooler where data is printed in
the background. If no data can be added because the file does not exist
or because the queue is full, the function returns to .F..
Example
Print to a file, then print it in the background:
SET PRINTER TO C:\TEST\PRINT.DAT // Redirect print
SET DEVICE TO PRINT // Print Output
@....SAY....
@....SAY....
SET DEVICE TO SCREEN
SET PRINTER TO // Close output file
IF SPOOLACTIV()
SPOOLADD("C:\TEST\PRINT.DAT") // .T., if correct
ELSE
*'normal' print
ENDIF
See Also:
SPOOLACTIV()
SPOOLDEL()
SPOOLFLUSH()
SPOOLCOUNT()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson