Tandy 1000 Basic Reference Manual page 314

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 10
I
BASIC Keywords
SPACE$
Function
SPACE
$( num
ber)
Returns a string of number spaces.
Number must be in the range 0 to 255.
Example
PR
I NT "DESCR I P T
I
ON"
SPFICE
$
(
4
1
" T Y P E "
SPACE
$
( 9
1
" Q U A N T I T Y "
prints DESCRIPTION,
4
spaces, TYPE, 9 spaces, QUANTITY.
Sample Program
9 2 0 P R I N T
"Here"
9 3 0 P R I N T S P & C E $ C 1 3 )
"i5"
9 4 0 P R I N T SPFICESC26)
"an"
9 5 0 P R I N T S P A C E S ( 3 9 )
" e x a m p l e "
9 6 0 P R . I N T S P A C E $ < S E )
" o f "
9 7 0 P R I N T S P F I C E $ < 6 5 ) " S P A C E $ "
312

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents