LEN()
This page was last modified 14:05, 29 May 2020 by Mars2000you. Based on work by Gdx and NYYRIKKI and others.

Contents

Effect

Returns the length of a string, including all non-printable characters.

Note: For strings with Japanese or Korean characters, you need to use CALL KLEN.

Syntax

LEN("<String>")

Parameter

<String> is a string of characters between double quotes ("). It can include non-printable characters and be replaced by a string variable (also named as alphanumeric variable).

Examples

PRINT LEN("MSX")
 3
A$="MSX":PRINT LEN(A$)
 3

Related to

CALL KLEN

Compatibility

MSX-BASIC 1.0 or higher