Show: Delphi C++
Display Preferences

Data.DB.TField.AsBCD

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AsBCD: TBcd read GetAsBCD write SetAsBCD;

C++

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

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB TField

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.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance