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> qjbcopiesget() / qjbcopiesset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 QJbCopiesGet() / QJbCopiesSet()
------------------------------------------------------------------------------
 Purpose:
 Get or set the number of copies of a job to be printed.

 Syntax:
 iCopies = QJbCopiesGet( dwQueueID, iJobNum )
 iCopies = QJbCopiesSet( dwQueueID, iJobNum, iNewCopies )

 Parameters:
 dwQueueID  The print queue ID number.
 iJobNum    The print job number.
 iNewCopies The new number of copies.

 Returns:
 A numeric value (signed short int).

 The CA-Clipper names of these functions are:
 QJbCpyGet() / QJbCpySet()

 Description:
 QJbCopiesGet() returns the number of copies of a print job that are
 printed once it is in the queue. dwQueueID is the queue ID number,
 iJobNum is the job number. Returns the number of times the job is to be
 printed, or NOVERRINT if an error occurs.

 QJbCopiesSet() sets the number of copies of the job that will be printed to
 the specified value iNewCopies. Returns the previous setting if the call is
 successful, or NOVERRINT if an error occurs.

 Example:
 // To change the number of times print job number 536 of print
 // queue PRINTQ_0 is to be printed to 5:
 dwCurrQ = QueIDGet( "PRINTQ_0" )
 if ( dwCurrQ != NOVERRLONG )
    iOldCopyCount = QJbCopiesSet( dwCurrQ, 536, 5 )
    iNewCopyCount = QJbCopiesGet( dwCurrQ, 536 )
    if ( iNewCopyCount != NOVERRINT )
       ? "Job 536 will now print", iNewCopyCount,"copies"
    endif
 endif

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

See Also: CapCopiesGet() / CapCopiesSet() QueIDGet() QueQJbList()

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