From RAD Studio API Documentation
Jump to: navigation, search


property AsBCD: TBcd read GetAsBCD write SetAsBCD;


__property Data::Fmtbcd::TBcd AsBCD = {read=GetAsBCD, write=SetAsBCD};


Type Visibility Source Unit Parent
property public
Data.DB TField


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.

See Also