Sign in Join
FPDoc Onlineexperiment

TFPExprNode.NodeType function

Member of TFPExprNodepublicIn unit fpExprPars

Get the result type of this expression node

Declaration

pascal
function NodeType: TResultType; virtual; abstract

Function result

Returns the result type of the node

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.

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