Sign in Join
FPDoc Onlineexperiment

TFPConstExpression.NodeType function

Member of TFPConstExpressionpublicIn unit fpExprPars

Get the result type for constant expressions

Declaration

pascal
function NodeType: TResultType; override

Function result

Returns the result type of the constant

Description

The NodeType method returns the data type of the constant value stored in the expression. The result type corresponds directly to the type of the constant data, whether it's integer, float, string, boolean, datetime, or currency.

For constant expressions, the node type is fixed and determined when the constant is created.

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