HEADER
Syntax
![]()
Command
Mandatory parameter Optional parameter Mandatory keyword Optional keyword |
HEADER (<Routine> | <Layout> | CLEAR[, <Output id>])
Description
Adds a layout or routine using a layout to the list to be called at the start of each new page.
Diagram
Returned value type
None
Parameters
Parameter | Description |
<Routine> | Name of a routine. |
<Layout> | Name of the layout to be called |
CLEAR | If CLEAR is specified the list is cleared and a new page is generated. |
<Output id> | Identifier for the printer. If no output id is given, then the default printer will be used. |
Remarks
It is not possible to open a header within the header itself.
Examples
(A)
header (lay_hdr)
(B)
header (rou_hdr, prout)
header (lay_hdr)
(B)
header (rou_hdr, prout)
Header routine for B:
routine rou_hdr (a-printer : printer)
begin_routine
hdr_printer := a-printer.printer
end_routine
begin_routine
hdr_printer := a-printer.printer
end_routine
Visit the following links for more print related commands: