SPC()
This page was last modified 15:58, 29 May 2020 by Mars2000you. Based on work by Gdx and Tvalenca and others.

Contents

Effect

Inserts a variable amount of spaces in a PRINT or LPRINT command.

Syntax

SPC(<Number>)

Parameter

<Number> is the number of spaces, it must be between 0 and 255.

Example

10 PRINT "MSX";SPC(3);"Forever!"
 
RUN
MSX   Forever!

Related to

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

Compatibility

MSX-BASIC 1.0 or higher