LEN Function

Returns the numeric value of the length of a string.

Syntax

LEN(char-string)

Syntax Elements

char-string is a field of characters expressed as a variable or symbol name, a dynamic array reference, or a literal enclosed in quotes.

Operation

LEN returns the numeric value of the length of the string specified by char-string.

Examples

A = "1234ABC"
B = LEN(A)

Assigns the value 7 to variable B.

Q = LEN("123")

Assigns the value 3 to variable Q.

X = "123"
Y = "ABC"
Z = LEN(X:Y)

Assigns the value 6 (variable Y concatenated to variable X) to variable Z.

Go to top button