Description
The Heading keyword will cause the Run_Report command to produce a running page heading. The heading can contain text, page numbers, dates, and other information.
Syntax
Heading "text ['options'[,format]]"
Remarks
The heading clause consists of the keyword Heading followed by the heading specifications in double quotes.
Note: You must use double quotes.
| Option | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| text | Any string of characters, including alpha, numeric, and punctuation except double and single quotes. | ||||||||||||||||||||||||||||
| "@" in the first position of each line of text will center the heading on the page. | |||||||||||||||||||||||||||||
| options | Options can be embedded into the heading text to include page numbers, date, time, and more. Options consists of one or two characters within single quotes. The options available are: | ||||||||||||||||||||||||||||
|
Example
* A Heading
Heading "Invoices sorted by date'L'Page 'PP'"
* Center the heading
Heading "@Invoices sorted by date 'L' Page 'PP'"
* Using the heading in a Run_Report statement
Declare Subroutine Run_Report
stmt = 'LIST CUSTOMERS CUSTOMER_NAME CITY STATE ZIP LANDSCAPE '
stmt: = 'Heading "@Customer Info '
stmt: = " 'L' Page 'PP'"
stmt: = '"'
Run_Report("",stmt)