[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
XPaMaxLen()
Return length of largest string in Array
------------------------------------------------------------------------------
Function: XPaMaxLen()
A simple though very handy function.
See source code below for wat it does.
used in the Library, and thus added..
Syntax: XPaMaxLen(aStrings]) --> nMaxLen
Arguments: aStrings is an Array of Strings. XPaMaxLen()
returns the length of the Largest string.
Returns: Largest string length
Usage: Here's the source code:
Function XPaMaxLen(a)
/***
* Return Length of largest string in array
*/
Local nMaxLen := 0
aEval(a,{|s|nMaxLen:=Max(Len(s),nMaxLen)})
Return (nMaxLen)
See Also:
XPaDelimit()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson