total

The total statement calculates totals and subtotals for the current field.


Parameters

No parameters.


Description

This statement calculates totals for the current field. The current field must be numeric. If the database contains summary records, this statement will calculate subtotals for each summary record, along with an overall total 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 total calculated and placed into the summary record.

This simple example calculates the total of all checks in the database.

field Debit
total

This example calculates the total sales for each state, along with the overall grand total.

field State
group
field Sales
total

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.