2 Report Description Statements
The HEADER Statement
The HEADER statement defines what is to be done as a heading routine for a specified break condition. Each HEADER statement is directly associated with a break condition. There may be only one active HEADER statement for each of the nine possible break levels.
HEADER level [WITH number LINES]
[USING [;list]][block statements]
The parameters are:
- level
- A numeric expression evaluating to an integer from 1 to 9. This integer associates the header to a break condition. If level is 0, the HEADER statement will be ignored.
- number
- The number of lines required for the header. If not entered, the value of number defaults to 1. The number is evaluated every time the HEADER statement is executed and can be dynamically changed.
- line id
- A line number or label referencing an IMAGE statement.
- image string
- A list of image specifiers describing the output format and enclosed in quotes.
- list
- This may be a list of string, numeric or array variables, literals, constants or expressions to be printed according to the image referenced.
- block statements
- Statements may follow the HEADER statement. They will be evaluated immediately after the HEADER statement.
Some examples of this statement follow.
170 HEADER 1
180 TOTALS ON Qty*Price
190 PRINT USING P_head1;Div$
.
.
.
670 P_head1: IMAGE /,2A,2X, "DIVISION"
The TOTALS ON statement is described later in this chapter.
220 HEADER 3 USING P_head3
230 TOTALS ON Qty*Price
.
.
.
710 P_head3: IMAGE /
Eloquence Report Manual - 19 DEC 2002