Name
Tab Function
Class
Microsoft.VisualBasic.FileSystem
Syntax
Tab[(column)]-
column(optional; Short) A column number to which the insertion point will move before displaying or printing the next expression
Return Value
A TabInfo structure
Description
Moves the text-insertion point to a given column or to the start of the next print zone
Rules at a Glance
If the
columnargument is omitted, the text-insertion point will be moved to the beginning of the next print zone.The value of
columndetermines the behavior of the insertion point:
|
Value of column |
Position of insertion point |
|---|---|
|
Current column > |
Moves one line down to the |
|
|
Uses the formula |
|
< 1 |
Column 1 |
The left hand column is always 1.
When expressions are output to files using the
PrintorPrintLinestatement, the width of the output is determined by theWidthstatement.When output surface is divided into columns, the width of each column is the average width of all characters in the current point size of the current font. This means that the number of columns for tabulation purposes does not necessarily relate to the number of characters that can be printed across the width of the output surface.
Programming Tips and Gotchas
The Tab function without a
column argument is useful when outputting data to a file ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access