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> qjbaddtst()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 QJbAddTst()
------------------------------------------------------------------------------
 Purpose:
 Verify job is being added to a queue.

 Syntax:
 bResult = QJbAddTst( dwQueueID, iJobNum )

 Parameters:
 dwQueueID The print queue ID number.
 iJobNum   The print job number.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 QJbAddTst() returns TRUE if print job number iJobNum is still being
 added to the print queue specified by ID number dwQueueID.

 Returns FALSE if not, or if an error occurs.

 Example:
 // To determine whether print job number 442 is still being added to
 // the print queue PRINTQ_1:
 dwCurrQ = QueIDGet( "PRINTQ_1" )
 if ( dwCurrQ != NOVERRLONG )
    do case
       case QJbAddTst( dwCurrQ, 442 )
          ? "Print job 442 is still being added to PRINTQ_1"
       case NWErrorGet() = 0
          ? "Print job 442 is no longer being added to PRINTQ_1"
       otherwise
          ? "Error"
    endcase
 endif

 Notes:
 The print queue ID number is obtained using the QueIDGet() function
 and print job numbers are obtained using the QueQJbLst() function. If
 FALSE is returned, check NWErrorGet().

See Also: QueIDGet() QueQJbDel() QueHaltGet() / QueHaltSet() QueQJbLst()

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