Siebel VB Language Reference > Siebel VB Language Reference >

Tab Function


This standard VB function moves the current print position to the column specified.

Syntax

Tab(position)

Argument
Description
position
The position at which printing is to occur

Returns

Not applicable

Usage

The Tab function can be used only inside a Print statement. The leftmost print position is position number 1.

When the Print statement is used, the Tab function uses the following rules for determining the next print position:

To set the width of a print line, use the Width statement.

Example

This example prints the octal values for the numbers from 1 to 25. It uses Tab to put five character spaces between the values.

Sub Button_Click
      Dim x As Integer
      Dim y As String
      For x = 1 to 25
         y = Oct$(x)
         Print x Tab(10) y
      Next x
End Sub

See Also

Print Statement
Space Function
Spc Function
Width Statement


 Siebel VB Language Reference
 Published: 18 June 2003