Community QBasic

Rebooting the QBasic we all know and love!


Project maintained by Cory Smith

SPC

Skips the specified number of spaces in a PRINT or LPRINT statement.

Syntax

SPC(num_spaces)

Comments

num_spaces is an integer value (from 0 through 32,767).

A semicolon is assumed to follow the SPC(n) command.

SPC may only be used with PRINT, LPRINT and PRINT# statements (see the SPACE$ function).

Example

FOR i = 0 TO 5
  PRINT SPC(i); i
NEXT

See Also