[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
XPastrLen()
Get the length of the longest string in an Array
------------------------------------------------------------------------------
Function: XPaStrLen()
Returns the length of largest string in an Array,
when supplied to XPdisplay().
Namely, the ~ characters must be removed..
Syntax: XPaStrLen(aStrings) --> nDisplayLenMax
Arguments: an Array of Strings
Returns: It's Max length when displayed with XPdisplay()
Usage: Here's the source code:
Function XPaStrLen(a)
/***
* Return Length of largest String in Array for XPdisplay()
* ie. remove ~, and return largest string.
*/
Local nMaxLen := 0
aEval(a,{|s|nMaxLen:=Max(XPstrLen(s),nMaxLen)})
Return (nMaxLen)
See Also:
XPstrLen()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson