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>spooldel()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SPOOLDEL()
 Deletes files from the print queue
------------------------------------------------------------------------------
 Syntax

     SPOOLDEL (<cFile>) --> 1Deleted

 Argument

     <cFile>  Designates which file to remove from the print spool queue.

 Returns

     SPOOLDEL() returns .T. when the designated file is successfully removed
     from the print spool queue.

 Description

     If the wrong file is put in the print spool queue, and is not yet
     printed, you can delete it from the internal list.  SPOOLCOUNT() and
     SPOOLENTRY() return information about files currently in the queue.

 Example

     Delete all files with the extension .SYS form the print queue:

     FOR I = 1 TO SPOOLCOUNT
        cFile:=   SPOOLCOUNT(0)

        IF RIGHT (cFile)
        ENDIF
     NEXT I
     SPOOLACTIV()      // Continue


See Also: SPOOLACTIV() SPOOLCOUNT() SPOOLENTRY() SPOOLFLUSH()

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