Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> queqjblist()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 QueQJbList()
------------------------------------------------------------------------------
 Purpose:
 Get a list of queue jobs.

 Syntax:
 iJobNum = QueQJbList( dwQueueID, bStartFlag )

 Parameters:
 dwQueueID  The print queue ID number.
 bStartFlag Flag signifying start of list.

 Returns:
 A numeric value (signed short int).

 The CA-Clipper name for this function is:
 QueQJbLst()

 Description:
 QueQJbList() is used to obtain a list of the job numbers of those jobs
 in the print queue specified by ID number dwQueueID.

 The function is initially called with bStartFlag set to TRUE, and returns
 the total number of print jobs in the queue. Subsequent repeated calls with
 bStartFlag set to FALSE return the job numbers of each print job.

 Returns NOVERRINT if an error occurs.

 Example:
 // To retrieve the job numbers of the jobs in PRINTQ_1:
 dwCurrQ = QueIDGet ( "PRINTQ_1" )
 if ( dwCurrQ != NOVERRLONG )
    iJobCount = QueQJbList( dwCurrQ, TRUE )
    for i = 1 to iJobCount
       ? QueQJbList( dwCurrQ, FALSE )   // Get each job number
    next
 endif

 Notes:
 The print queue ID number is obtained using the QueIDGet()
 function.

See Also: QueIDGet() QJbPositionGet() / QJbPositionSet() QJbSizeGet()

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