LEN

Function

LEN returns the length of a string.

Syntax

LEN (string)

where string is a string expression.

Examples

10 A$ = "ABCDEFC”
20 PRINT LEN (A$)

prints 7.

Remarks

The string may be an expression.

A null string has zero length.