AT&T 6300 Programmer's Manual page 476

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

Advertisement

TAB
Function
Syntax
n
Remarks
Example
Tabs the cursor or the print head to a specified
position, in PRINT, LPRINT, or PRINT#
statements.
TAB(n)
is an integer expression in the range 1 to 255.
If the current cursor or print position is
already beyond the specified value "n" TAB
goes to that position on the next line. Space 1
is the leftmost position, and the rightmost
position is the defined width.
If the value of "n" exceeds the defined width,
the modulo operation is applied. For example,
PRINT TAB(243) on a 40-column screen is the
same as PRINT TAB(3), because 243 MOD
40+3.
A semicolon is assumed to follow the TAB
function; thus GWBASIC does not add a
carriage return if the TAB function is at the
end of the list of data items.
10 PRINT "NAME" TAB(25) "AMOUNT" :
PRINT
20 READ AS,BS
30 PRINT AS TAB(25) BS
40 DATA "G. T. JONES","S25.00'
NAME
AMOUNT
7-320
G. T. JONES
Ok
S25.00

Advertisement

Table of Contents
loading

Table of Contents