◄Syntax► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back► ────────────────────────────────────────────────────────────────────────────── LEN returns the number of characters in a string constant or string expression, or the number of bytes required by a variable. LEN(stringexpression$) or LEN(variable) Usage Notes ■ The first syntax returns the number of characters in stringexpression$. ■ The second syntax returns the number of bytes required by a BASIC variable. This syntax is particularly useful for determining the correct record size of a random-access file.