Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>spooladd()</b> http://www.X-Hacker.org [<<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()

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