Skip to content

BASIC SPC Function

Mike Hogsett edited this page Aug 28, 2024 · 2 revisions

SPC

TYPE: BASIC String Function

FORMAT: SPC(numeric)

Action:

The SPC function is used to control the formatting of data, as either an output to the screen or into a logical file. The number of spaces given by the numeric argument are printed, starting at the first available position.

EXAMPLE of SPC Function:

10 PRINT"RIGHT "; "HERE &";
20 PRINT SPC(5)"OVER" SPC(14)"THERE"
RUN

RIGHT HERE &     OVER              THERE

Clone this wiki locally