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> capcopiesget() / capcopiesset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CapCopiesGet() / CapCopiesSet()
------------------------------------------------------------------------------
 Purpose:
 Get or set the number of capture copies.

 Syntax:
 iCopies = CapCopiesGet( iLPTNum )
 iCopies = CapCopiesSet( iLPTNum, iNewCopies )

 Parameters:
 iLPTNum    The LPT device. 1=LPT1: 2=LPT2: 3=LPT3:
 iNewCopies The new number of copies.

 Returns:
 A numeric value (signed short int).

 The CA-Clipper names for these functions are:
 CapCopiesGet() / CapCopiesSet()

 Description:
 CapCopiesGet() returns the number of copies to be printed on the
 specified LPT device iLPTNum.

 CapCopiesSet() sets the number of copies to be printed to iNewCopies for
 the specified LPT device and returns the previous setting.
 When the number of copies is set, the change only takes effect after
 CapStart() is called.

 Returns NOVERRINT if an error occurs.

 Example:
 // To print 10 copies of the captured print data from LPT1:
 iPreviousCopies = CapCopiesSet( 1, 10 )
 if (NWErrorGet() = 0)
    iCurrentCopies = CapCopiesGet(1)
    ? "LPT1: will now always print 10 copies"
 endif

See Also: CapStart()

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