ftFMTBcd
ftFMTBcd = 37
Example
function IsFormattedBCD(Field: TField): Boolean;
begin
Result := Field.DataType = ftFMTBcd;
end;
Usage
ftFMTBcd identifies formatted BCD decimal fields that retain explicit precision and scale beyond the conventional Currency-compatible BCD family.
Additional Technical Info
ftFMTBcd is declaration ordinal 37 of TFieldType. It identifies formatted BCD decimal fields, for which precision and scale are separate, material schema properties.
The enum alone does not state either value. Inspect the actual field definition/provider and keep arithmetic/serialization in a decimal-capable representation. Converting to Currency can lose range/scale; converting to Float can lose decimal exactness. Define rounding explicitly whenever a destination has narrower scale.
The example only inspects metadata and was source-reviewed; no BCD conversion/dataset/database/runtime/image test ran.
External references
Created 2026-07-15