Create the TableOf header template. The DEFINE HEADER statement and its attributes create the header template TableOf, which is specified by the HEADER statement later on in the program.


The TEXT statement specifies the text of the header by using dynamic variables that represent label variables and names. The TEXT statements also use expressions to determine if row labels and column labels are assigned to the row and column variables. Only TEXT statements that have true expressions are displayed in the output. In this example, both the row label and the column label exist. Therefore the first TEXT statement is used and the text resolves to: "Table of City Government Form by Number of Meetings Scheduled".


The STYLE= attribute specifies style information for the header.


      define header TableOf;
	        text "Table of " _ROW_LABEL_ " by " _COL_LABEL_ / _ROW_LABEL_ ^= '' 
             & _COL_LABEL_ ^= '';
	        text "Table of " _ROW_LABEL_ " by " _COL_NAME_  / _ROW_LABEL_ ^= '';
	        text "Table of " _ROW_NAME_  " by " _COL_LABEL_ / _COL_LABEL_ ^= '';
	        text "Table of " _ROW_NAME_  " by " _COL_NAME_;
         style=header {backgroundcolor=#BFCFFF color=#6078bf fontstyle=italic};
         end;