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> queqjbdelete()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 QueQJbDelete()
------------------------------------------------------------------------------
 Purpose:
 Delete a queue job.

 Syntax:
 bResult = QueQJbDelete( 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:
 QueQJbDel()

 Description:
 QueQJbDelete() returns TRUE if print job number iJobNum is successfully
 deleted from the print queue specified by ID number dwQueueID.

 Returns FALSE if the print job is not deleted, or if an error occurs.

 Example:
 // To delete job number 244 from print queue PRINTQ_1:
 dwCurrQ = QueIDGet ( "PRINTQ_1" )
 if ( dwCurrQ != NOVERRLONG )
    if ( QueQJbDelete( dwCurrQ, 244 ) )
       ? "Job 244 from PRINTQ_1 successfully deleted"
    endif
 endif

 Notes:
 The print queue ID number is obtained using the QueIDGet() function
 and print job numbers are obtained using the QueQJbList() function.

 This function requires that the requesting user either owns the specified
 job or has queue operator rights.
 If FALSE is returned, check NWErrorGet().

See Also: QueIDGet() QueQJbList()

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