|
Len()
Return the length of a character string or the
number of elements in an array.
Syntax
Len(<cString> |
<aTarget>) --> nCount
Arguments
<cString> --> is the character string to
count.
<aTarget> --> is the array to count.
Returns
Len() returns the length of a character string or
the number of elements in an array as an integer numeric value. If
the character string is a null/empty string ("") or the array is
empty, Len() returns zero.
Description
Len() is a character and array function that
returns the length of a character string or the number of elements
in an array. With a character string, each individual character
making up the string counts as one. A null string ("") returns
zero.
For an array, Len() returns the number of
elements. If the array is multidimensional, subarrays count as one
element.
Examples
Len('ABCDEFGHIJK')
* Result = 11
aArray := { 1, 4, 2
}
Len(aArray)
* Result = 3
____________________________
Related Topics
Business
Function List
|