SPACE$

Function

SPACE$ is used to return a string consisting of n spaces.

Syntax

SPACE$(n)

Example

10 DIM A$ (0,10)
20 A$ = "123" + SPACE$(3) + "ABCD"
30 PRINT A$

This will print a string consisting of the digits 1, 2, 3 followed by 3 spaces followed by the letters A, B, C, D.

Remarks

The parameter n is an integer in the range 0 to 255.