Discussion:
TFMTBcdField, Why can't do FMTBcdfield1.value := 0;
(too old to reply)
Francisco Ruiz
2007-12-13 17:41:28 UTC
Permalink
Hello Folks,

I can't understand why can't do aritmetic operations with TFMTBcd fields.

Can anyone tell me the reason?

Thanks,

FRuiz
Bill Todd
2007-12-13 17:51:20 UTC
Permalink
You can create a Variant that represents a TBcd value using the
VarFMTBcdCreate function. In fact, the easiest way to manipulate TBcd
values is to create Variants for them and use the built-in operators
provided by the Variant type.

See the information on the TBCD Type and VarFMTBCDCreate in the on-line
help. You can do arithmetic with the variants created by
VarFMTBCDCreate.
--
Bill Todd (TeamB)
Loading...