Enform Plus Reference Manual

Clauses
Enform Plus Reference Manual422684-001
5-33
CENTER Clause
CENTER Clause
The CENTER clause centers an object within its context. The syntax of the CENTER
clause is:
target-item
is a record name, a field name, a string literal, a predefined aggregate, a user
aggregate, an arithmetic expression, an IF/THEN/ELSE expression, a user
variable, or a System Variable clause.
by-item
is the name of a field grouped by a BY or BY DESC clause.
Centering Single Report Items
The CENTER clause causes a target-item or by-item to be centered under its
column heading. Numeric data is normally right-justified; alphabetic data is normally
left-justified. Target-items and by-items are centered based on the width for
which they are formatted, not their actual values. If the space divides unevenly, Enform
Plus places the extra space to the right of the item.
Centering All Report Items
The CENTER ALL clause causes all elements in a LIST statement to be centered under
their headings. It must follow the WHERE clause in the LIST statement. See the syntax
of the LIST statement under LIST Statement
on page 4-30 for the relative locations of
the clauses within a LIST statement.
Centering a Print List
The CENTER clause following the print list of an AT END statement or clause, an AT
START statement or clause, an AFTER CHANGE clause, a BEFORE CHANGE clause, A
FOOTING statement or clause, a SUBTITLE statement or clause, a SUBFOOTING
statement or clause, or a TITLE statement or clause, centers the print-list
information on the page.
{ { target-item } CENTER , }
{ { by-item } }
{ }
{ CENTER ALL, }