NAME

tab - move to tab location

SYNOPSIS

tab(n)
short n;

DESCRIPTION

Tab outputs blanks to the current file (see initio(io)) until the fileís position reaches column n.  It is legal to write sequentially to a random file provided the write is entirely within the buffer.  Columns are numbered starting with one.  If column n is to the left of the current position, tab first changes the position to the beginning of the next line by outputting a newline.  If the current position is column n, tab does nothing. 

This function implements the TAB function of the LPRINT, PRINT and PRINT # statements. 

SEE ALSO

initio(io)
tab(func), lprint(stmt), print(stmt), print #(stmt)

DIAGNOSTICS

Error 5 (Illegal function call) is generated if the file is open for input only or if n is non-positive or is greater than or equal to 255. 

from The Basmark QuickBASIC Programmerís Manual by Lawrence Leinweber