RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TFMTBCDField.currency Property

Determines whether the value in the field should be formatted as a currency value.

Pascal
property currency: Boolean;
C++
__property Boolean currency;

Use the currency property to influence how the value in the field should be formatted for viewing and editing in a data-aware control. 

For display purposes, the field is formatted using the DisplayFormat property if it is assigned. Similarly, for editing purposes, the field is formatted using the EditFormat (or DisplayFormat) property if it is assigned. 

If DisplayFormat or EditFormat is not assigned, C currency determines how the field is formatted. If currency is true, the value is formatted to represent a monetary value. If currency is false, it is formatted to reflect the precision and decimal places of the BCD type. 

 

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