xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

TabPack()

Inserts a Tab (Chr(9)) for multiple occurrances of a character.

Syntax

TabPack( <cString>   , ;
        [<nTabWidth>], ;
        [<xFillChar>]  ) --> cResult

Arguments

<cString>
This is the character string to process.
<nTabWidth>
This numeric parameter defaults to 8, the default width of a Tab character (chr(9)).
<xFillChar>
Either a single character or its numeric ASCII code can be specified to search for. The default is a space character (chr(32)).

Return

The function seraches multiple occurrances of <xFillChar> and replaces them with a Tab (Chr(9)) according to the specified tab width. The packed string is returned.

Info

See also:TabExpand()
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