Basic computer language commands

Basic computer programming language

SPC Function

Purpose:

To skip a specified number of spaces in a PRINT or an LPRINT statement.

Syntax:

SPC(n)

Comments:

n must be within the range of 0 to 255.

If n is greater than the defined width of the printer or the screen, the value used will be n MOD width.

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).

Examples:

PRINT "OVER" SPC(15) "THERE"
 OVER               THERE

BASIC commands Main Menu

Index