Macros and the IBM CognosScript Language  7.5.0
IBM CognosScript Statements and Functions > Tab Function >

Comments

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

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

  1. If n is less than the total line width, the new print position is n.

  2. If n is greater than the total line width, the new print position is n Mod width .

  3. If the current print position is greater than n or n Mod width, Tab skips to the next line and sets the print position to n or n Mod width.

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