Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>netprinter()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NETPRINTER()
 Determines whether the current printer is a local or network printer
------------------------------------------------------------------------------
 Syntax

     NETPRINTER() --> lServerPrinter

 Returns

     NETPRINTER() returns .T. when the printer installed using the CA-Clipper
     SET PRINTER TO <LPTn> command has been redirected onto a network server.

 Description

     NETWORK PRINTER
     This function allows you to determine if the printer installed using the
     CA-Clipper SET PRINTER TO <LPTn> command is local or resides on a
     network server.

 Note

     .  This function cannot be used in a Novell network, because
        there the redirection occurs on a deeper level (INT 17h).  However,
        you can use the NNETCAPACT() function in a Novell Network.

 Example

     Determine whether LPT1 and LPT2 are local or remote:

     SET PRINTER TO LPT1
     ? NETPRINTER()                        // .F., local printer
     SET PRINTER TO LPT2
     ? NETPRINTER()                        // .T., network printer

See Also: NETREDIR() NNETWORK() NNETCAPACT()

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