Declaring a block of statements to be executed at the start of each page

!heading

Declare statements to be executed at the start of each page


SYNTAX

!heading {
 statements
}

Declare a block of statements to be executed at the start of each new page

A new page starts if a newpage command is executed or if the report logic determines that the line to be printed is on the next page.


NOTES

  • Since heading statements can be invoked at any time, care should be taken that unintentional changes are not made. For example, it is normally wise to ensure that sys.Row is not altered.

  • If the !heading section consists of a single statement the braces may be omitted and the statement placed on the same line as the !heading command.

  • Only one !heading section may be defined.


EXAMPLE

!heading {
     print "NAME AND ADDRESS LISTING";
     if (sys.PageNumber > 1) then print " (continued)"
     print
     setfont(sys.FontName, sys.FontSize, FONT_UNDERLINE)
     printh *Cust.surname, [Cust.fname],
     printh *Cust.add1, [Cust.add2}, *Cust.tel
     setfont(sys.FontName, sys.FontSize, FONT_NORMAL)
}

RELATED TOPICS

Reports

!footnote

!heading

!init

!title