Tab: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
The '''TAB(X)''' [[internal function]] returns the TAB character repeated X times
====Comments and Examples====
00010 PRINT TAB(3)
Line 10 prints the TAB character on the screen 3 times.
====Related Functions====
Other special functions used mainly in [[PRINT]] are [[BELL]] and [[NEWPAGE]].
====Technical Considerations====
# In an unformatted PRINT statement, when NEWPAGE precedes the TAB(X) function, the TAB function will appear to be off by one column because the character for NEWPAGE appears in the output buffer, but not on the screen or printer. Avoid using NEWPAGE (or BELL) before TAB in an unformatted PRINT statement. One remedy is to use one PRINT statement for NEWPAGE (and BELL) and another for the TAB function and other output.
<noinclude>
<noinclude>
[[Category:Internal Functions]]
[[Category:Internal Functions]]
</noinclude>
</noinclude>

Revision as of 17:03, 18 January 2012

The TAB(X) internal function returns the TAB character repeated X times

Comments and Examples

00010 PRINT TAB(3)

Line 10 prints the TAB character on the screen 3 times.

Related Functions

Other special functions used mainly in PRINT are BELL and NEWPAGE.

Technical Considerations

  1. In an unformatted PRINT statement, when NEWPAGE precedes the TAB(X) function, the TAB function will appear to be off by one column because the character for NEWPAGE appears in the output buffer, but not on the screen or printer. Avoid using NEWPAGE (or BELL) before TAB in an unformatted PRINT statement. One remedy is to use one PRINT statement for NEWPAGE (and BELL) and another for the TAB function and other output.