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

TFPExpressionResult

Record representing the result of expression evaluation

Declaration

Source position: fpexprpars.pp line 98

type TFPExpressionResult = record

  ResString: AnsiString;

  

String value when result type is string

  case ResultType: TResultType of

    rtBoolean: (

        ResBoolean: Boolean;

  

Boolean value when result type is boolean

      );

    rtInteger: (

        ResInteger: Int64;

  

Integer value when result type is integer

      );

    rtFloat: (

        ResFloat: TExprFloat;

  

Float value when result type is float

      );

    rtCurrency: (

        ResCurrency: Currency;

  

Currency value when result type is currency

      );

    rtDateTime: (

        ResDateTime: TDatetime;

  

DateTime value when result type is datetime

      );

    rtString: (

      );

end;

Description

The TFPExpressionResult record stores the result of evaluating an expression node, containing both the actual value and type information.

The ResultType field indicates which variant is active and determines how to interpret the value stored in the record.


Documentation generated on: Dec 15 2025