qbasic.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
SPACE$ Function
  Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
Returns a string of spaces.
 
SPACE$(n%)
 
    ■ n%    The number of spaces you want in the string.
 
Example:
    FOR i% = 1 TO 5
        x$ = SPACE$ (i%)
        PRINT x$; i%
    NEXT i%
 
See Also    SPC    STRING$