Moves the print position to a specified character position within a line, when called from within a Print or Print # statement.
Tab ( column )
column
Any integer expression between 1 and 32000, inclusive, specifying a character position in the printed output. If column is less than 1, the Tab position defaults to 1 (the leftmost print position).
If you haven't specified a width for the file, Tab checks column against the current print position, and acts as follows:
If you print to a file whose width was set with the Width # statement, Tab interacts with that width as described in the following table.
Column |
Tab moves to: |
---|---|
> width |
column Mod width |
< 1 |
column 1 |
< current print position |
(column - current position) on the next line |
> current print position |
(column - current position) on the same line |