Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : $TOCPRINT

$TOCPRINT
Prints the table of contents. (C)
Invocation
CALL $TOCPRINT(fill_char)
 
The character to be printed to fill the space between the end of the section name and the beginning of the page number. Its syntax is V (variable-length character string).
Usage Notes
fill_char is repeated as many times as fits.

Exceptions
 
Example
The following rule builds a table of contents and prints it to the message log:

 
TOCPRINT_1;
_
_ ------------------------------------------------------------------------
_ ------------------------------------------------------------+-----------
_ CALL $SETPRINT(10, 70, 1, 'SCR', 'N'); | 1
_ CALL $TOCPUT('SECTION ONE', 1, 'Y'); | 2
_ CALL $BLANKPAGE('N'); | 3
_ CALL $TOCPUT('SECTION TWO', 1, 'Y'); | 4
_ CALL $BLANKPAGE('N'); | 5
_ CALL $TOCPRINT(' .'); | 6
_ ------------------------------------------------------------------------

 
Resulting Output
Pressing PF2 after executing this rule displays the following screen:

 
---------------------- INFORMATIONAL MESSAGE LOG --------------------
COMMAND ===> SCROLL ===> P
------------------------------ NEW PAGE ------------------------------
------------------------------ NEW PAGE ------------------------------
------------------------------ NEW PAGE ------------------------------
CONTENTS
========
SECTION ONE . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
SECTION TWO . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved