The LENDP function returns the display length of an expression. It takes the general form:
Where expression can evaluate to any type. The LENDP function will evaluate each character in the expression and return the calculated display length.
The LENDP function when used in International Mode will return the display length for the characters in the specified expression rather than the number of bytes.
Note that some characters, usually Japanese, Chinese, etc will return a display length of greater than one for some characters. Some characters, for instance control characters or null (char 0), will return a display length of 0.
Go back to jBASE BASIC.