Data.DB.TAggregateField.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 TAggregateField

Description

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

Use currency to specify the formatting of the field if its ResultType is a floating-point type (ftFloat or ftCurrency).

Floating-point values are formatted for display 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, 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.

See Also