[fpc-pascal] fcl-report - Aggregates are initialized on every page - duplicat exception in expressionparser
friess at gmx.at
Sun Dec 29 15:39:35 CET 2019
i have found out, if i make a report with more than one page and with
aggregate variables, this variables are initialized more than once in
procedure TFPCustomReport.InitializeAggregates(IsFirstPass : Boolean);
and this raise and exception, because the variables are duplicates.
The exception is correct.
The reason is, InitializeAggregates is called for every page in the
designed report and not once.
To test this, make a report with Aggregates and design more than one
page. Then run the report -> exception.
More information about the fpc-pascal