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> capmaxchrget() / capmaxchrset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CapMaxChrGet() / CapMaxChrSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set the maximum capture characters per line.

 Syntax:
 iChar = CapMaxChrGet( iLPTNum )
 iChar = CapMaxChrSet( iLPTNum, iNewMax )

 Parameters:
 iLPTNum The LPT device. 1=LPT1: 2=LPT2: 3=LPT3:
 iNewMax The new number of characters per line.

 Returns:
 A numeric value (signed short int).

 Description:
 CapMaxChrGet() returns the number of characters per line used for
 printing jobs on the specified LPT device iLPTNum.

 CapMaxChrSet() sets the number of characters per line to iNewMax for the
 specified LPT device iLPTNum and returns the previous setting.
 When a new number of characters is set, the change only takes effect after
 CapStart() is called.

 Returns NOVERRINT if an error occurs.

 Example:
 // To display the number of characters per line used for the
 // print data captured from LPT1:
 iLineChar = CapMaxChrGet( 1 )
 if ( iLineChar != NOVERRINT )
    ? "LPT1: is set to", iLineChar, "characters per line"
 endif
 // To change the number of characters per line for the print data
 // captured from LPT1: to 80 characters:
 iOldChar = CapMaxChrSet( 1, 80 )
 iNewChar = CapMaxChrGet( 1 )
 if ( iLineChar != NOVERRINT )
    ? "LPT1: was set to ", iOldchar, " characters per line"
    ? "LPT1: is now set to", iNewchar, " characters per line"
 endif

See Also: CapMaxLneGet() / CapMaxLneSet() CapTabSizeGet() / CapTabSizeSet()

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