Skip to content

TAggregateExpr.GetNodeValue

Get the aggregate expression value

Declaration

Source position: fpexprpars.pp line 651

public 
procedure TAggregateExpr.GetNodeValue(var Result: TFPExpressionResult)
                                     ;  override;

Description

The GetNodeValue method returns the final calculated value of the aggregate expression after all values have been processed. It is called after the aggregation process is complete to retrieve the accumulated result.

The method returns the result in a TFPExpressionResult structure, which can contain different data types depending on the specific aggregate operation (numeric for sums and averages, integer for counts, etc.).

The GetNodeValue method should only be called after the aggregation initialization and update phases are complete, as the result depends on all processed values.