LEFT$()
This page was last modified 16:00, 27 January 2018 by Mars2000you. Based on work by Gdx and NYYRIKKI and others.

Contents

Effect

Returns a string composed of the leftmost x characters of the string A$.

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

Syntax

LEFT$(A$,x)

Range

LEFT$ accepts an offset (x) between 0 and 255

Example

10 A$=LEFT$("MSX Forever!",3)
20 PRINT A$
 
RUN
MSX

Related to

CALL KMID, MID$, RIGHT$

Compatibility

MSX-BASIC 1.0 or higher