Data.DB.TBCDField.currency

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property currency: Boolean read FCurrency write SetCurrency default False;

C++

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

Properties

Type Visibility Source Unit Parent
property published
Data.DB.pas
Data.DB.hpp
Data.DB TBCDField

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. If DisplayFormat is not assigned, currency determines how the field is formatted for display. If currency is True then the value is formatted for display using the FloatToText function with the ffCurrency formatting code. If currency is False, the value is formatted with the ffGeneral format.

For editing purposes, the field is formatted using the EditFormat (or DisplayFormat) property, if it is assigned. If neither EditFormat nor DisplayFormat is assigned, currency determines how to format the field for editing. If currency is True, then the value is formatted for editing using the FloatToText function with the ffFixed formatting code. If currency is False, then the value is formatted with the ffGeneral format.

See Also