Get the aggregate expression value
Source position: fpexprpars.pp line 651
public procedure TAggregateExpr.GetNodeValue( |
var Result: TFPExpressionResult |
); override; |
Result |
|
Returns the aggregate result |
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.