maximum

The maximum statement calculates the maximum and sub-maximums for the current field.


Parameters

No parameters.


Description

This statement calculates the maximum of the visible records for the current field. The current field may be numeric, text, or a date field. If the database contains summary records, this statement will calculate the sub-maximum for each summary record, along with an overall maximum for the whole database. If there are not any summary records in the database, one will be added at the end of the database and the overall maximum will be calculated and placed into the summary record.

This simple example calculates the largest check in the database.

field Debit
maximum

This example calculates the largest sale for each state, along with the overall largest sale.

field State
group
field Sales
maximum

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.