xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

TabExpand()

Replaces a tab with a specified number of another character.

Syntax

TabExpand( <cString>   , ;
          [<nTabWidth>], ;
          [<xFillChar>]  ) --> cResultString

Arguments

<cString>
This is a character string to expand Tab characters in (Chr(9)).
<nTabWidth>
This parameter defaults to 8 so that Tabs are replaced by a character string of eight <xFillChar>.
<xFillChar> [ Chr(32) ]
Either a single character or its numeric ASCII code can be specified as replacement for Tab characters. The default is a space character (chr(32)).

Return

The function replaces each Tab character found in <cString> with a string consisting of <nTabWith> times <xFillChar> and returns the modified string.

Info

See also:TabPack()
Category: CT:String manipulation , Character functions
Source:ct\tab.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe