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> qjbfilenameget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 QJbFileNameGet()
------------------------------------------------------------------------------
 Purpose:
 Get the spool file name of a queue job.

 Syntax:
 lpszFile = QJbFileNameGet( dwQueueID, iJobNum )

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

 Returns:
 A character string of length 13.

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

 Description:
 QJbFileNameGet() returns the name of the spool file for job number iJobNum
 in the print queue specified by ID number dwQueueID. The spool file is the
 temporary system file in which all pending queue jobs are stored.

 Returns an empty string if an error occurs.

 Example:
 // To display the name of the spool file for print job number
 // 442 in print queue PRINTQ_1:
 dwCurrQ = QueIDGet( "PRINTQ_1" )
 if ( dwCurrQ != NOVERRLONG )
    lpszFileStr = QJbFileNameGet( dwCurrQ, 442 )
    if ( !empty( lpszFileStr ) )
       ? "The spool file for job 442 is", lpszFileStr
    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: QueIDGet() QueQJbList()

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