Sign in Join
FPDoc Onlineexperiment

TAggregateSum.InitAggregate procedure

Member of TAggregateSumpublicIn unit fpExprPars

Initialize sum aggregation

Declaration

pascal
procedure InitAggregate; override

Description

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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.