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> pjbactivetest()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 PJbActiveTest()
------------------------------------------------------------------------------
 Purpose:
 Get whether a printer has an active job.

 Syntax:
 bActive = PJbActiveTest( wPtrNum )

 Parameters:
 wPtrNum The printer number.

 Returns:
 A boolean value (TRUE or FALSE).

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

 Description:
 PJbActiveTest returns TRUE if the specified printer wPtrNum on the
 currently logged into print server is servicing an active print job.

 Returns FALSE if not or if an error has occurred in which case call
 NWErrorGet() to obtain the error code.

 Example:
 // To log in to print server PRINTERS and display whether
 // printer 0 is servicing an active job:
 if( PSWSLogin ( "PRINTERS" ) > 0 )
    if( PJbActiveTest( 0 )
    ? "Printer 0 on print server PRINTERS has an active job"
 endif

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

See Also: PSWSLogin() PJbNumberGet()

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