LEN( ) |
Return String Length |
LEN(string$[,ERR=stmtref])
Where:
string$ |
String expression whose length is to be returned. |
stmtref |
Program line number or statement label to which to transfer control. |
Integer, length of given string, 0 (zero) if null string.
The LEN( ) function returns an integer reporting the length of the given string. If the given string is a null string (""), then the function returns a length of 0 (zero).
A=len("HELLO") ! yields 5
A=len("") ! yields 0
A=len("A"+"BC") ! yields 3
A=len(day) ! yields 8 (DAY variable is in format MM/DD/YY)