SPC()
This page was last modified 19:56, 27 January 2018 by Mars2000you. Based on work by Tvalenca and Gdx and others.

Contents

Effect

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

The number of spaces must be between 0 and 255.

Syntax

SPC(<number>)

Example

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

Related to

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

Compatibility

MSX-BASIC 1.0 or higher