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

 Syntax:
 bFlag = CapTabFlagGet( iLPTNum )
 bFlag = CapTabFlagSet( 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).

 The CA-Clipper names for these functions are:
 CapTabFlgGet() / CapTabFlgSet()

 Description:
 CapTabFlagGet() 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.

 CapTabFlagSet() 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 = CapTabFlagGet( 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 = CapTabFlagSet( 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