Sign in Join
FPDoc Onlineexperiment

FieldTypetoVariantMap constant

In unit DB

Map field types on variant types.

Declaration

pascal
FieldTypetoVariantMap: Array[TFieldType] of Integer = (varError, varOleStr, varSmallint, varInteger, varSmallint, varBoolean, varDouble, varCurrency, varCurrency, varDate, varDate, varDate, varOleStr, varOleStr, varInteger, varOleStr, varOleStr, varOleStr, varOleStr, varOleStr, varOleStr, varOleStr, varError, varOleStr, varOleStr, varInt64, varError, varError, varError, varError, varOleStr, varOleStr, varVariant, varUnknown, varDispatch, varOleStr, varOleStr, varDouble, varOleStr, varOleStr, varUnknown, varUnknown, varLongWord, varShortint, varByte, varDouble, varSingle)

Description

FieldTypetoVariantMap contains for each field datatype the variant value type that corresponds to it. If a field type cannot be expressed by a variant type, then varError is stored in the variant value.

See also

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