Sign in Join
FPDoc Onlineexperiment

CharToResultType function

In unit fpExprPars

Convert character to result type

Declaration

pascal
function CharToResultType(C: AnsiChar): TResultType

Arguments

C

Character to convert to result type

Function result

Returns corresponding result type

Description

The CharToResultType function converts a single character code to the corresponding TResultType enumeration value. It is used internally for parsing type specifications and managing result type conversions within the expression parser.

The character codes map to specific result types:

  • 'B' maps to Boolean type (rtBoolean)
  • 'I' maps to Integer type (rtInteger)
  • 'F' maps to Float type (rtFloat)
  • 'S' maps to String type (rtString)
  • 'D' maps to DateTime type (rtDateTime)
  • 'C' maps to Currency type (rtCurrency)

The CharToResultType function is primarily used for internal type management and serialization purposes within the expression parsing framework.

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