Data.DB.TField.AsBCD
[–] Properties | |
---|---|
Type: property | |
Visibility: public | |
Source: Data.DB.pas Data.DB.hpp
| |
Unit: Data.DB | |
Parent: TField |
Delphi
property AsBCD: TBcd read GetAsBCD write SetAsBCD;
C++
__property Data::Fmtbcd::TBcd AsBCD = {read=GetAsBCD, write=SetAsBCD};
Description
Represents the field's value as a TBcd value.
Use AsBCD to read the value of the field's data into a TBcd or assign a TBcd value to the contents of the field.
As implemented by TField, reading AsBCD returns the value of AsCurrency converted to a TBcd value, and setting AsBCD sets the AsCurrency property after converting a supplied TBcd value to the Currency type. Some TField descendants override AsBCD to perform a more direct conversion.
Note: If the field does not support Currency values, the field component raises an exception when an attempt is made to get or set the AsBCD or AsCurrency property.