LEN
String Length
This numeric function returns the length, in number of bytes, of any string.
Syntax
Section titled “Syntax”LEN (string-value [,ERR=line-ref|,ERC=error-code])string-value- is any valid string.
line-ref- is the program line number or label to branch to if an error is produced by this function.
error-code- is a programmer-defined error code. Valid values are positive or negative whole numbers.
Examples
Section titled “Examples”LEN ("COMPUTER")returns the value 8.
LEN (A$)If A$ = “COMPUTER”, has the same result as the first example.
LET X = LEN (B$)If B$ = “TT000”, assigns the value 5 to X.
LET LENGTH = LEN ($AA$)returns the value 1.
See also
Section titled “See also”STL function
From the Thoroughbred Basic Language Reference, Volume II: F–Q, version 8.9.1. Open this page in the PDF