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

 Syntax:
 bResult = QJbAddingTest( dwQueueID, iJobNum )

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

 Returns:
 A boolean value (TRUE or FALSE).

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

 Description:
 QJbAddingTest() 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 QJbAddingTest( 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 QueQJbList() function. If
 FALSE is returned, check NWErrorGet().

See Also: QueIDGet() QueQJbDelete() QueHaltGet() / QueHaltSet() QueQJbList()

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