Skip to content

TFPExprNode.NodeType

Get the result type of this expression node

Declaration

Source position: fpexprpars.pp line 125

public 
function TFPExprNode.NodeType : TResultType;  virtual;  abstract;

Description

The NodeType abstract method must be implemented by derived classes to return the TResultType that indicates what type of value this node will produce when evaluated.

The result type information is essential for type checking during expression validation and for determining appropriate type conversions when combining values from different nodes.

Common result types include boolean, integer, float, string, datetime, and currency, depending on the specific operation or value represented by the node.