Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

FOOTING

Description

The FOOTING statement halts all subsequent output to the terminal at the end of each output page. It takes the general from: 

FOOTING expression

Where: 

expression should evaluate to a string, which is printed at the bottom of every page of output. The string could contain a number of interpreted special characters, replaced in the string before printing.


The following characters have special meaning within the string:

  • "C{n}" center the line, if n is specified the output line is assumed to be n characters long 
  • "D" or \\ replace with the current date
  • "L" or ] replace with the newline sequence
  • "N" terminal output does not pause at the end of each page
  • "P" or ^ replace with the current page number
  • "PP" or ^^ replace with the current page number in a field of 4 characters; the field is right justified
  • "T" or \ replace with the current time and date
  • " replace with a single " character

The statement allows the evaluation and display of an expression at the foot of each page. Output, which is current, and being sent to the terminal, the output is paused until the entry of a carriage return at the terminal (unless the N option is specified either in the current HEADING or in this FOOTING).

If the output is to the printer a PRINTER ON statement is in force; output sent to the terminal with the CRT statement is not paged; if output is to the terminal then all output is paged.

An example of use is as: 

FOOTING "Programming staff by weight Page "P"


Go back to jBASE BASIC.

Was this article helpful?