SPACE Function

Generates a string containing a specified number of blank spaces.

Syntax

SPACE(count)

Syntax Elements

count The number of blank spaces.

Examples

PRINT SPACE(10):"HELLO"

Prints 10 spaces followed by the word HELLO.

DIM M(10)
MAT M = SPACE(20)

Assigns a string consisting of 20 blanks to each of 10 elements of array M.

S = SPACE(7)
L = "SMITH"
C = ","
F = "JOHN"
N = L:S:C:S:F

Assigns the following string to variable N:

"SMITH       ,       JOHN"