|Powered by QM on a Rpi server|
This article was originally published as a Tip of the Week.
QM adds some useful new control codes to the definitions of page headings and footings. Everything described below for headings applies equally to footings. Except for the B control code which is specific to the query processor, all codes apply to both the query processor and QMBasic applications.
The B heading control code used in conjunction with the B code in a BREAK.ON or BREAK.SUP qualifier captures the new value of the breakpoint field and inserts it into the heading. This is common to many multivalue products but can only be used on one breakpoint. QM extends this for multiple breakpoints by qualifying the B code with a single digit number, 0 to 9. Use of B0 is equivalent to use of B.
QM allows the C (centre) and G (gap) control codes to be used meaningfully in the same line of a heading. The line is considered as a number of sections separated by the G control codes. The section in which the C code appears is centred and then items either side are set out in the remaining space.
The Hn control code sets the column number (from 1) at which the remainder of the text on the same line will start.
The O control code reverses the sequence of the G separated elements of a heading line on even numbered pages. This can be useful when printing double sided reports.
The following control codes behave similarly in QM as in other multivalue systems that support this style of heading control code.
|D||Insert the date|
|F||Insert the file name (query processor only)|
|I||Insert the record id of the first record on the page (query processor only)|
|L||Insert a newline|
|P||Insert fixed width page number|
|R||Insert the record id of the first record on the page (query processor only)|
|S||Insert variable width page number|
|T||Insert the date and time|