Sign in Join
FPDoc Onlineexperiment

TAggregateExpr.GetNodeValue procedure

Member of TAggregateExprpublicIn unit fpExprPars

Get the aggregate expression value

Declaration

pascal
procedure GetNodeValue(var Result: TFPExpressionResult); override

Arguments

Result

Returns the aggregate result

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.

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