NAME

tab - tab to specified print position

SYNOPSIS

print tab(NumExpr)

DESCRIPTION

Tab causes any subsequent output to occur at the next tab stop.  NumExpr may be any numeric expression whose value is in the range 1 to 255. 

If the current print position is to the right of position NumExpr, the tab function makes position NumExpr on the next line the current print position.  The leftmost position is space 1, the rightmost position is that defined by the width function. 

The tab function may be used with print and print # statements only. 

EXAMPLE

Tab is used in the following example to cause the information on the terminal to line up in columns. 
	   print "NAME" tab(25) "AMOUNT" : print
	   on error goto 90
	40 read a$, b$
	   print a$ tab(25) b$
	   goto 40
	   data "Gary M. Goins", "$25,000.00"
	   data "Roger Bielefeld", "$45,000.00"
	   data "Lawrence J. Leinweber", "$60,000.00"
	90 resume 95
	95 end
The output looks like
	NAME                    AMOUNT
	
	Gary M. Goins           $25,000.00
	Roger Bielefeld         $45,000.00
	Lawrence J. Leinweber   $60,000.00

SEE ALSO

print

DIAGNOSTICS

If NumExpr is less than 0 or greater than 254, an "Illegal function call" error occurs. 

USAGE NOTES

Basmark QuickBASIC does not add a newline when tab occurs at the end of a data list.  Instead, it executes as though the tab function had a semicolon after it. 

from The Basmark QuickBASIC Programmerís Manual by Lawrence Leinweber