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> pjbdescriptionget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PJbDescriptionGet()
------------------------------------------------------------------------------
 Purpose:
 Get the description of the current printing job.

 Syntax:
 lpszDesc = PJbDescriptionGet( wPtrNum )

 Parameters:
 wPtrNum The printer number.

 Returns:
 A character string of length 49.

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

 Description:
 PJbDescriptionGet() returns the description of the current job being
 serviced by printer wPtrNum.

 Returns an empty string if an error occurs.

 Example:
 // To log in to print server PRINTERS and test printer 0 to
 // display the job number being printed, the queue and print server it
 // came from and its description:

 if( PSWSLogin ( "PRINTERS" ) > 0 )
    iJobNum    = PJbNumberGet(0)
    lpszServer = PJbFSGet(0)
    lpszQueue  = PJbQueueGet(0)
    lpszDesc   = PJbDescriptionGet(0)
    if iJobNum > 0
       ? "Printer 0 of print server PRINTERS, is printing "
       ?? "Job number ",iJobNum," from print queue ",lpszQueue
       ? "from file server ",lpszServer
       ? "The description for this job is ",lpszDesc
    endif
 endif

 Notes:
 It is only possible to be logged in to one print server at a time.

See Also: PJbFSGet() PJbQueueGet() PJbNumberGet() PSWSLogin()

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