SPACE$ function

Purpose

Return a string consisting of a specified number of spaces.

Syntax

s$ = SPACE$(numeric_expression)

Remarks

numeric_expression is a non-negative expression that specifies how many spaces the function is to return.  SPACE$ can be useful for formatting or prefilling strings.

See also

CHR$, CSET, CSET$, LSET, NUL$, REPEAT$, RSET, STRING$

Example

A$ = SPACE$(1000000) ' fill A$ with 1000000 spaces