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> qjbbanget() / qjbbanset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 QJbBanGet() / QJbBanSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set the queue job banner.

 Syntax:
 lpszBanner = QJbBanGet( dwQueueID, iJobNum )
 lpszBanner = QJbBanSet( dwQueueID, iJobNum, lpszNewBan )

 Parameters:
 dwQueueID  The print queue ID number.
 iJobNum    The print job number.
 lpszNewBan The new banner title.

 Returns:
 A character string of length 14.

 Description:
 QJbBanGet() is used to return the banner title of a queue job.
 dwQueueID is the print queue ID number, iJobNum is the job number.

 Returns the banner title if successful, or an empty string if an
 error occurs.

 QJbBanSet() sets the banner title to lpszNewBan, which can be up to 14
 characters long. Returns the previous banner title, or an empty string if
 an error occurs.

 Example:
 // To change the banner title of job number 659 of print queue
 // PRINTQ_0 to MY_JOB:
 dwCurrQ = QueIDGet( "PRINTQ_0" )
 if ( dwCurrQ != NOVERRLONG )
    lpszOldTextStr = QJbBanSet( dwCurrQ, 659, "MY_JOB" )
    lpszNewTextStr = QJbBanGet( dwCurrQ, 659 )
    if ( !empty(lpszNewTextStr) )
       ? "The new title of job 659 is", lpszNewTextStr
    endif
 endif

 Notes:
 The queue ID number can be obtained using the QueIDGet() function.
 Print job numbers can be obtained from the list returned by QueQJbLst().

See Also: CapBanTxtGet() / CapBanTxtSet() QueIDGet() QueQJbLst()

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