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> captabflgget() / captabflgset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CapTabFlgGet() / CapTabFlgSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set the capture tab flag.

 Syntax:
 bFlag = CapTabFlgGet( iLPTNum )
 bFlag = CapTabFlgSet( iLPTNum, bNewFlag )

 Parameters:
 iLPTNum  The LPT device. 1=LPT1: 2=LPT2: 3=LPT3:
 bNewFlag The convert tab flag.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 CapTabFlgGet() is used to return whether tabs are to be translated to
 spaces at print time for the specified LPT device iLPTNum.

 Returns TRUE if tabs are to be converted and FALSE if not, or if an error
 occurs.

 CapTabFlgSet() sets the tab flag to the specified value bNewFlag for the
 specified LPT device iLPTNum and returns the previous setting.

 Example:
 // To return the current state of the tab flag on LPT1:
 bCurrFlag = CapTabFlgGet( 1 )
 if ( NWErrorGet() = 0 )
    ? "Tab translation on LPT1: is "
    if ( CurrFlag )
       ?? "enabled"
    else
       ?? "disabled"
 endif
 // To disable the translation of tabs to spaces on LPT1:
 bOldFlag = CapTabFlgSet( 1, FALSE )
 if ( NWErrorGet() = 0 )
    ? "Tab translation on LPT1: is now disabled"
 endif

 Notes:
 If FALSE is returned, check NWErrorGet().

See Also: CapTabSizeGet() / CapTabSizeSet()

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