Unit 'fpexprpars' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TFPExprNode.HasAggregate

Check if node tree contains any aggregate operations

Declaration

Source position: fpexprpars.pp line 124

public function TFPExprNode.HasAggregate: Boolean; virtual;

Function result

Returns true if tree has aggregate operations

Description

The HasAggregate method examines the expression subtree rooted at this node to determine if it contains any aggregate operations. It returns True if this node or any of its descendant nodes represents an aggregate operation.

The method recursively checks child nodes to detect aggregate functions anywhere in the expression tree. This information is used by the expression evaluator to determine if aggregate processing is required for the expression.

Unlike IsAggregate which only checks the current node, this method performs a search of the entire subtree.


Documentation generated on: Dec 15 2025