Skip to content

CharToResultType

Convert character to result type

Declaration

Source position: fpexprpars.pp line 840

function CharToResultType(C: AnsiChar) : TResultType;

Arguments

Name Description
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.