AT&T 6300 Programmer's Manual page 464

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

SPC
Function
Syntax
n
Remarks
Example
7-308
Skips "n" spaces in a PRINT, LPRINT, or
PRINT# statement.
SPC ( n )
is an integer expression in the range 0 to 255. It specifies the
number of spaces to be inserted in the output line.
SPC may only be used with PRINT, LPRINT
and PRINT# statements.
If "n" is greater than the defined width, then
the value used is "n MOD width". A semicolon
(;) is assumed to follow the SPC function; thus
GWBASIC does not add a carriage return if
the SPC function is at the end of the list of
data items.
PRINT "FOUR" SPC(15) "SEASONS"
FOUR
SEASONS
See also the SPACE$ function in this chapter.

Advertisement

Table of Contents
loading

Table of Contents