xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

NumLine()

Returns the number of lines in an ASCII formatted character string.

Syntax

NumLine( <cText>, [<nLineLength>] ) --> nLineCount

Arguments

<cText>
This is the ASCII formatted character string to process.
<nLineLength>
Optionally, the line length for formatting can be specified as a numeric value. It defaults to 80 characters per line.

Return

The function returns the number of lines needed to output an ASCII formatted text string (fixed font).

Note:  the tab character (Chr(9)) is counted as a single character. If it exists in a text string, the text should be converted with TabExpand() before NumLine() is called.

Info

See also:MaxLine(), MlCount(), TabExpand()
Category: CT:String manipulation , Character functions
Source:ct\numline.c
LIB:xhb.lib
DLL:xhbdll.dll


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