LEN()
This page was last modified 20:08, 27 January 2018 by Mars2000you. Based on work by Gdx and NYYRIKKI and others.

Contents

Effect

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

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

Syntax

LEN(X$)

Example

10 PRINT LEN("MSX")
 
RUN
3

Compatibility

MSX-BASIC 1.0 or higher

Related to

CALL KLEN