in BASIC ROM:
|List of all BASIC keywords|
Typ: Function General Programming-Syntax: SPC(<Numeric>)
SPC can be used to set a number of spaces, which are either written into a file or printed onto screen. SPC can be used several times in a sentence.
The valid number of spaces range from 0 to 255, other values will cause the BASIC-error ?ILLEGAL QUANTITY ERROR IN line to occur. If using a non-numerical argument the BASIC-error ?TYPE MISMATCH ERROR IN line will appear. When the numerical argument is missing the BASIC-error ?SYNTAX ERROR IN line is displayed.
Note that when SPC is used for writing spaces into a file the maximum number of spaces is 254.
Also note that SPC will not overwrite and erase things already printed on screen, so
PRINT SPC(3) is not the same as
PRINT" " in that respect.
When the last char in the actual print-line is reached, the printer automatically makes a carriage return and a linefeed.
PRINT "THE" SPC(5) "COMMODORE" SPC(15) "64" SPC(255) "LIVES !!!"