RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TField.AsBCD Property

Represents the field's value as a TBcd value.

Pascal
property AsBCD: TBcd;
C++
__property TBcd AsBCD;

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.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!