TAB()
This page was last modified 19:48, 27 January 2018 by Mars2000you. Based on work by Gdx and NYYRIKKI and others.

Contents

Effecct

Inserts the amount of spaces needed to reach a variable position in a PRINT OR LPRINT command.

The position is defined by a number between 0 and 255.

If the cursor has already reached the specified position on the same line, the function is ignored.

Syntax

TAB(<number>)

Example

10 PRINT "MSX";TAB(10);"Forever!"
20 PRINT TAB(10);"www.msx.org"
 
RUN
MSX       Forever!
          www.msx.org

Related to

LPRINT, PRINT, SPACE$(), SPC(), STRING$()

Compatibility

MSX-BASIC 1.0 or higher