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> captabsizeget() / captabsizeset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CapTabSizeGet() / CapTabSizeSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set the capture tab size.

 Syntax:
 iTabSz = CapTabSizeGet( iLPTNum )
 iTabSz = CapTabSizeSet( iLPTNum, iNewSize )

 Parameters:
 iLPTNum  The LPT device. 1=LPT1: 2=LPT2: 3=LPT3:
 iNewSize The new tab size.

 Returns:
 A numeric value (signed short int).

 Description:
 CapTabSizeGet() returns the tab size used for printing jobs on the
 specified LPT device iLPTNum. The tab size indicates the number of spaces
 that will be output when a tab character is printed.

 CapTabSizeSet() sets the tab size used for printing jobs on the specified
 LPT device iLPTNum to the value iNewSize.
 When a new tab size is set, the change only takes effect after CapStart()
 is called.

 Returns NOVERRINT if an error occurs.

 Example:
 // To display the tab size for the print data captured from LPT1:
 iTabSize = CapTabSizeGet( 1 )
 if ( iTabSize != NOVERRINT )
    ? "The current tab size for LPT1: is", iTabSize
 endif
 // To change the tab size for the print data captured from LPT1: to 9
 // characters:
 iOldTabSize = CapTabSizeSet( 1, 9 )
 iNewTabSize = CapTabSizeGet( 1 )
 if ( iNewTabSize = 9 )
    ? "The tab size for LPT1: is now 9"
 endif

See Also: CapMaxChrGet() / CapMaxChrSet() CapTabFlgGet() / CapTabFlgSet()

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