
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_capdflt( [ <cdevice>|<ndevice> ] )
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_CAPDFLT( [ <cDevice>|<nDevice> ] )
Parameters
<cDevice> -- or -- <nDevice>
Capture device name or number. Valid device names are LPT1 to LPT3.
Valid device numbers are 1 to 3.
Returns
If no new default is specified (that is, if the function is called
without a Parameter), the function Returns a string containing the name
of the current default device. If a new default device is specified,
the function Returns a string containing the name of the previous
default device.
Description
You can use this function to get the name of the current default
capture device, or to set a new default.
The default capture device is the one that Clipper prints to if no
explicit SET PRINTER TO LPT? has been issued. It is also the device
referenced by "LPT*" or 0 in the <Device> argument to N_CAPGET() and
N_CAPSET().
Example
cOld = N_CAPDFLT('LPT3') /* Save current default
and set a new one. */
.
. // Print stuff.
.
N_CAPDFLT(cOld) // Reset default.
See Also: N_CAPGET() N_CAPSET()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson