SDAC

TMSDataSetOptions.EnableBCD Property

Used to specify whether to treat numeric fields as floating-point or BCD.

Class

TMSDataSetOptions

Syntax

property EnableBCD: boolean;

Remarks

Use the Enable BCD property to specify whether to treat numeric fields as floating-point or BCD. Use the EnableBCD property to specify how fields are mapped to field classes. If EnableBCD is True, decimal and numeric fields are mapped to the TBCDField class when field objects are created. If EnableBCD is False, the fields are mapped to the TFloatField class. EnableBCD determines whether numeric and decimal fields are translated as floating-point values or currency values. Currency values eliminate the rounding errors associated with the floating point math (such as a 3 * (2/3) resulting in 2.00000000001). The default value is False.

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback