Siebel VB Language Reference > Methods Reference for Siebel VB > File Input and Output Methods >

Set Print Position Method


The Set Print Position method sets the current print position. It does not return a value. You can use it only in a Print statement. Position number 1 is the leftmost print position. This method sets the new print position according to one of the following values of the position:

  • The value in the position argument is less than the total line width. It sets the new print position to the value in the position argument.
  • The value in the position argument is greater than the total line width. It sets the new print position according to the following calculation:

    The remainder of the input position argument divided by the length of the string

  • The current print position is greater than the position or the position Mod width. It skips to the next line and sets the print position to the value in the position argument or to the value in the position Mod width.

You can use the Set File Width statement to set the width of a print line. For more information, see Set File Width Method.

Format

Tab(position)

The following table describes the arguments that you can use with this method.

Argument
Description

position

The position at which Siebel VB begins to print.

Example

The following example prints the octal values for the numbers from 1 through 25. It uses the Set Print Position method to insert 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

Siebel VB Language Reference Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.