Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfprnchk()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfPrnChk()
Checks the printer status
------------------------------------------------------------------------------
Syntax:

     dfPrnChk( [<nPrinter>], [<nDelay>] ) --> lStatus

Parameters:

     <nPrinter> Number of the printer to check.
     +--------------------------+
     |#|  Printer     |         |
     |-+--------------+---------|
     |1|     LPT1     | DEFAULT |
     |2|     LPT2     |         |
     |3|     LPT3     |         |
     |4|     LPT4     |         |
     |5|     LPT5     |         |
     |6|     LPT6     |         |
     |7|     LPT7     |         |
     |8|     LPT8     |         |
     |9|     LPT9     |         |
     +--------------------------+
     <Delay>    waiting delay, when the printer is not activated. The
     default value is 5 secs.

Returns:

     <lStatus> If .T. the printer is ready.

Description:

     Checks the status of a printer.

Example:

     // Suppose LPT1 and LPT2 are ready
     ? dfPrnChk()        //  .T.
     ? dfPrnChk( 1 )     //  .T.
     ? dfPrnChk( 2 , 5 ) //  .T.
     ? dfPrnChk( 3 )     //  .F.
     ? dfPrnChk( 4 )     //  .F.

See also:

     dfisPrn()

See Also: dfisPrn()

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