Data.DB.TFMTBCDField.currency

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: published
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TFMTBCDField

Delphi

property currency: Boolean read FCurrency write SetCurrency default False;

C++

__property bool currency = {read=FCurrency, write=SetCurrency, default=0};

Description

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

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.

See Also