Initialize sum aggregation
Source position: fpexprpars.pp line 679
public procedure TAggregateSum.InitAggregate; override; |
The InitAggregate method initializes the sum aggregate for a new aggregation cycle. It resets the internal accumulator to zero and prepares the aggregate state for processing new values.
The method sets up the appropriate initial values based on the expected result type (integer, float, or currency) and ensures that the accumulator is ready to receive and sum new values.