Enform Plus Reference Manual

Clauses
Enform Plus Reference Manual422684-001
5-40
Heading for Subscripted Elements
a number sign (#), causing Region and Number to print on two lines, and the symbol
/ inside the print list is printed between Branch and Number:
SET @NEWLINE TO "#";
LIST regnum HEADING "Region#Number",
branchnum HEADING "Branch/Number"/;
Region
Number Branch/Number
------ -------------
1 1
1 2
Notice that when the / symbol appears outside of the heading clause, it causes Enform
Plus to advance one line before printing the next target-item. Changing the
@NEWLINE character does not affect this use of the / symbol.
Heading for Subscripted Elements
When a single subscripted element is modified by a HEADING clause, Enform Plus
prints the specified heading. For example:
LIST month [ 3 ], HEADING "MARCH";
causes Enform Plus to print:
MARCH
-----
...
When an element including a subscript range is modified by a HEADING clause, Enform
Plus includes the subscript in the specified heading. For example:
LIST month [ 1:3 ], HEADING "FIRST QUARTER";
causes Enform Plus to print:
FIRST QUARTER FIRST QUARTER FIRST QUARTER
[1] [2] [3]
------------- ------------- -------------
... ... ...
If a HEADING clause is not included, Enform Plus includes the subscript with the
default heading. For example:
LIST month [ 3 ];
causes Enform Plus to print:
MONTH
[ 3 ]
-----
...