SPACE$()
This page was last modified 19:56, 27 January 2018 by Mars2000you.

Contents

Effect

Generates a string with a specified number of spaces, between 0 and 255.

This instruction is equivalent to STRING$ used with the ASCII code 32.

Syntax

SPACE$(<number>)

Example

10 PRINT "A";SPACE$(5);"B"
20 PRINT SPACE$(5);"AB"
 
RUN
A     B
     AB

Related to

SPC(), STRING$(), TAB()

Compatibility

MSX-BASIC 1.0 or higher