SPC()
This page was last modified 00:27, 30 May 2023 by Mars2000you. Based on work by Gdx and Tvalenca and others.

Contents

Effect

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

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