RIGHT$()
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 right x characters of the string A$.

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

Syntax

RIGHT$(A$,x)

Range

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

Example

10 A$=RIGHT$("MSX Forever!",8)
20 PRINT A$
 
RUN
Forever!

Related to

CALL KMID, LEFT$, MID$

Compatibility

MSX-BASIC 1.0 or higher