RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBCDField.Value Property

Represents the value of the BCD field as a Currency value.

Pascal
property Value: Currency;
C++
__property Currency Value;

Unlike other field types, the Value of a binary-coded decimal (BCD) field does not correspond to the physical format of the data that is stored in the underlying database table. The IDE does not have a native type for BCD. Therefore, TBCDField converts the data from a BCD value to a Currency value when it fetches the data from the database table, and converts it from a Currency value to a BCD value when it posts the data. For BCD fields, Value is the same as the AsCurrency property.

Note: Because TBCDField works with its data as a Currency value, simply getting the value of the field and posting that value back to the database table can alter the contents of the field. That is, the line below can alter the contents of the field in the database table.

MyBCDField.Value := MyBCDField.Value;

 

MyBCDField->Value = MyBCDField->Value;

 

AsCurrency 

SetData

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!