Data.DB.TParam.AsFMTBCD

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AsFMTBCD: TBcd read GetAsFMTBCD write SetAsFMTBCD;

C++

__property Data::Fmtbcd::TBcd AsFMTBCD = {read=GetAsFMTBCD, write=SetAsFMTBCD};

Properties

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

Description

Specifies the value of the parameter when it represents a binary-coded decimal (BCD) field with more than 4 decimal places or 20 significant digits

Set AsFMTBCD to assign the value for a BCD field to the parameter when the BCD field is represented by a TFMTBCDField object. TFMTBCDField objects and the AsFMTBCD property use a true BCD type to represent the value of BCD fields. This is more accurate but slower than the Currency type used by TBCDField and the AsBCD property. Setting AsFMTBCD sets the DataType property to ftFMTBCD.

Read the AsFMTBCD property to determine the value that was assigned to an output parameter, represented as a TBcd type. The value of the parameter is converted to a TBcd value if possible.

Tip: If the BCD field uses less than 4 decimal places or 20 significant digits, you can achieve better performance by using a TBCDField object and the AsBCD property instead.

See Also