Table of Contents

ugBASIC User Manual

SPC ✓

SYNTAX

   PRINT SPC(spaces)

PURPOSE

The function SPC can be used to set a number of spaces, which are printed onto screen. SPC can be used several times in a sentence.

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.

EXAMPLE

  PRINT SPC(10);"*"

See also the following example files:

ABBREVIATION

 Ss

AVAILABLE ON

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY