| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Formats a character string for block paragraphs.
CharSpread( <cString> , ;
<nLineLen> , ;
[<xInsChar>] ) --> cResult
The function returns a string formatted to the length of <nLineLen>. The string is expanded by inserting <xInsChar> between words. If <xInsChar> is not contained in <cString>, the function returns a unchanged string.
| See also: | Center(), CharOne(), Expand() |
| Category: | CT:String manipulation , Character functions |
| Source: | ct\spread.prg |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
PROCEDURE Main
LOCAL cString := "The xHarbour compiler"
? CharSpread( cString, 35 )
// result: "The xHarbour compiler"
RETURN
http://www.xHarbour.com