# footing statement

The footing statement designates a text
string composed of literals and special options to output at the bottom
of each page.

## Syntax

```
footing str.exp
footing "{{text} {’options’}...}"
```

## Description

The string expression is treated
as any BASIC character string and can be surrounded by `"` or `\` , or the expression can be contained in a
variable. Embedded footing options must be enclosed
within `’` to distinguish them from text. Multiple
options can be enclosed in the same set of single quotation marks.

The footing statement can be changed by a new footing statement, and the new footing is output when the
end of the current page is reached.

The system(4) function maintains line and system(5) function
maintains the page counters while heading and footing are active.

## Example(s)

```
footing "’lc’page ’pn’ printed at ’tlc’"
```
The above footing statement uses a
literal string for the string expression and produces a footing that
looks as follows:

```
page ’1’ printed at 13:45:00 10 FEB 2003
```
The same footing expression can be
placed in a variable, and the variable name used in the footing statement.

```
footstring="’lc’page ’pn’ printed at ’tlc’"
footing footstring
```
In this example, the footing expression
is a compound string expression.

```
footing "’lc’page ’pn’":message:"’l’"
```

## See also

- [break-on modifier](https://d3codex.com/access/break-on-modifier/)
- [crt statement](https://d3codex.com/pickbasic-flashbasic/crt-statement/)
- [heading statement](https://d3codex.com/pickbasic-flashbasic/heading-statement/)
- [page statement](https://d3codex.com/pickbasic-flashbasic/page-statement/)
- [printer statement](https://d3codex.com/pickbasic-flashbasic/printer-statement/)
- [roll-on modifier](https://d3codex.com/access/roll-on-modifier/)
- [Statements and functions](https://d3codex.com/pickbasic-flashbasic/statements-and-functions/)
- [system() function](https://d3codex.com/pickbasic-flashbasic/system-function/)
- [\ arithmetic operator](https://d3codex.com/pickbasic-flashbasic/backslash-arithmetic-operator/)

---
Source: https://d3codex.com/pickbasic-flashbasic/footing-statement/ - part of the D3Codex reference.
