Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - <u>you can set the printer port more efficiently by calling n_capdflt(). </u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
You can set the printer port more efficiently by calling N_CAPDFLT(). 
Though superseded, N_SPLLPT() has been retained in the library to 
maintain compatibility with earlier versions of NetLib. Future 
versions may not retain N_SPLLPT(), so please take this opportunity 
to begin using the new function in your code.


Syntax

N_SPLLPT( [ <nPort> ] )


Parameters

<nPort>
Printer port number to be captured. Valid settings are 1 to 3, 
representing LPT1, LPT2, and LPT3. The default is 1.


Returns

N_SPLLPT() with no parameters returns current printer port number.


Description

N_SPLLPT() tells the network which local device to capture, LPT1, LPT2, 
or LPT3. It does not actually direct output to that device. You must 
also issue SET PRINTER TO.

All documents subsequently spooled from the current station will be 
affected until the setting is changed by another N_SPLLPT(). If the 
function N_SPLQUE() is also used, it must be issued after N_SPLLPT(). 
In any case, N_SPLLPT() must be issued before N_SPOOL(.T.)



See Also: N_CAPDFLT()

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