Set Horizontal Tabs

This command sets up to 32 horizontal tab positions, n columns from column one, but does not move the print position. Refer to the Horizontal Tab (09) command.

The tab positions remain unchanged if the character widths are changed after the tabs are set. This command ends with hexadecimal 00. Hexadecimal 1B 44 00 clears all tabs. Tabs are assumed to be in strictly ascending order. A tab out of order terminates the command string as if it were 00, and remaining tab values are taken as normal data.

ASCII

ESC D [n] k NUL

Hexadecimal

1B 44 [n] k 00

Decimal

27 68 [n] k 0

Value of n

Column for tab minus one.

Note: n is always less than or equal to the current selected column width.

Value of k

0–32

Default

Every 8 characters from column 1 (9, 17, 25, and so forth) for normal print.

Formulas

Set the tab positions in ascending order and put Hex 00 at the end. Hex 1B 44 00, number of tabs not specified, clears all tab positions.

Example:   

MSComm1.Output = Chr$(&H1B) & Chr$(&H44) & Chr$(&H00)

Note:  The tabs cannot be set higher than the column width of the current pitch.