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> capmaxlineget() / capmaxlineset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CapMaxLineGet() / CapMaxLineSet()
------------------------------------------------------------------------------
 Purpose:
 Get or set the maximum capture lines per page.

 Syntax:
 iLine = CapMaxLineGet( iLPTNum )
 iLine = CapMaxLineSet( iLPTNum, iNewNum )

 Parameters:
 iLPTNum The LPT device. 1=LPT1: 2=LPT2: 3=LPT3:
 iNewNum The new number of lines per page.

 Returns:
 A numeric value (signed short int).

 The CA-Clipper names for these functions are:
 CapMaxLneGet() / CapMaxLneSet()

 Description:
 CapMaxLineGet() returns the number of lines per page used for printing
 jobs on the specified LPT device iLPTNum.

 CapMaxLineSet() sets the number of lines per page to iNewNum for the
 specified LPT device iLPTNum and returns the previous setting.
 When a new number of lines per page is set, the change only takes effect
 after CapStart() is called.

 Returns NOVERRINT if an error occurs.

 Example:
 // To display the number of lines per page used for the print
 // data captured from LPT1:
 iPageLine = CapMaxLineGet( 1 )
 if ( iPageLine != NOVERRINT )
    ? "LPT1: is set to", iPageLine, "lines per page"
 endif
 // To change the number of lines per page for the print data captured
 // from LPT1: to 70 lines:
 iOldPageLine = CapMaxLineSet( 1, 70 )
 iNewPageLine = CapMaxLineGet( 1 )
 if ( iNewPageLine != NOVERRINT )
    ? "LPT1 was set to ",iOldPageLine, " lines per page"
    ? "LPT1: is now set to ",iNewPageLine, " lines per page"
 endif

See Also: CapMaxCharGet() / CapMaxCharSet()

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