xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

MaxLine()

Returns the longest line in an ASCII formatted character string.

Syntax

MaxLine( <cText> ) --> nMaxLineLength

Arguments

<cText>
This is the ASCII formatted character string to process.

Return

The function recognizes Chr(13) and Chr(10) as end-of-line markers and counts all other characters. It returns the largest number of characters found in a single text line as a numeric value.

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 MaxLine() is called.

Info

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


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