Returns the number of characters in a string or the number of bytes used to store a variable.
LEN
(string_expression)
LEN
(variable)
string_expression is any string expression.
variable is any variable of a type other than STRING.
DIM x as INTEGER, y AS LONG
a$ = "13 CHARACTERS"
PRINT a$, LEN(a$)
PRINT "Integer"; LEN(x), "Long"; LEN(y)
Results in:
13 CHARACTERS 13
Integer 2 Long 4