Chapter
10 I
BASIC Keywords
TAB
Function
TAB (number)
Spaces to position
number
on the display.
Number
must be in the range 1 to 255 and specifies the charac-
ter position to which to tab. The leftmost position is 1, and the
rightmost position is the set width minus 1 (WIDTH-1).
If
the current print position is already beyond space
number,
TAB goes to that position on the next line.
You cannot use TAB to move the cursor to the left.
You cannot use TAB more than once in a print list.
You may u s e TAB only w i t h t h e P R I N T a n d L P R I N T
statements.
Sample Program
1 0 P R I N T "NAME"
T A B ( 2 5 )
"AMOUNT": P R I N T
2 0 READ
A $ ,
B $
3 0 P R I N T
A $ T A B C 2 5 ) B S
4 0 D A T A " G . T . J O N E S " , " $ 2 5 . 0 0 "
When you run this program, the display shows:
NAME
AMOUNT
G.
T . JONES
$ 2 5 . 0 0
326