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>spoolcount()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SPOOLCOUNT()
 Determines the number of entries in the print spool queue
------------------------------------------------------------------------------
 Description

     The function allows you to determines the number of entries in the print
     spool queue.  This value can be useful in a loop in conjunction with
     SPOOLENTRY().  A file currently being printed is not counted.

 Note

     .  When using SPOOLENTRY() in conjunction with SPOOLCOUNT(),
        SPOOLENTRY() stops print output.

 Examples

     .  Display entries (stops output):

        FOR I = 1 TO SPOOLCOUNT()
           ? SPOOLENTRY (I)                     // Path and file name
        NEXT I
        SPOOLACTIV()                            // Continue printing

     .  Delete the next-to-last entry:

        ? SPOOLDEL(SPOOLENTRY9SPOOLCOUNT() -1   //.T., when done


See Also: SPOOLENTRY() SPOOLDEL()

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