hello,Aout "uniquery1.Options.EnableBCD","EnableFMTBCD"

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
wjzws
Posts: 20
Joined: Fri 17 Jul 2009 02:33

hello,Aout "uniquery1.Options.EnableBCD","EnableFMTBCD"

Post by wjzws » Mon 16 Nov 2009 08:57

Hello:
Can you explain about "uniquery1.Options.EnableBCD", "uniquery1.Options.EnableFMTBCD", these two attributes is how to use do?

Or, what are their functions?

Thanks!

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 16 Nov 2009 09:56

If you use NUMERIC or DECIMAL fields in a database, they are mapped to TFloatField by default.

If you set EnableBCD option to True, UniDAC uses TBCDField.
If you set EnableBCD option to True, UniDAC uses TFmtBCDField.

TBCDField and TFmtBCDField hold exact values. While TFloatField holds approximate values. So you may enable these options if you need to get exact values for NUMERIC fields.

Post Reply