Skip to content

Alternative circle routine

github-actions[bot] edited this page Jun 16, 2022 · 7 revisions

The function is used in PRINT and LPRINT statements to print or output a number of space characters.

SPC()
  • count designates the number of column spaces to move the cursor in a PRINT statement.
Usage:
  • When used in a PRINT statement,
    • is the number of space characters to print, overwriting existing characters.
    • If is greater than the number of columns left in the current row, remaining space characters are printed on the next row.
  • When used in a PRINT # statement,
    • is the number of space characters to output.
    • If is less than or equal to zero, the function has no effect.
Example: Using SPC to space a text print. "123456789" "abc" ; (3) ; "123" 123456789 abc 123

Clone this wiki locally