[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'db' (#fcl)

# TCurrencyField

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Class for currency fields

## Declaration

Source position: db.pas line 656

`type TCurrencyField = class(TFloatField)`
`public`
`constructor Create(); override;` |  | Create a new instance of a TCurrencyField.
`published`
`property Currency;` |  | Is the field a currency field
`end;`

## Inheritance

`TCurrencyField` |  | Class for currency fields
`TFloatField` |  | Class for floating point values
`TNumericField` |  | Base class for all numerical data field classe
`TField` |  | Provide access to the contents of a single field in a record
`TComponent,IUnknown,IInterfaceComponentReference`
`TPersistent`
`TObject`

## Description

TCurrencyField is the field class used by TDataset when it needs to manage currency-valued data.(TField.Datatype equals ftCurrency). It simply sets some Tfield properties to be able to work with currency data.

It should never be necessary to create an instance of TCurrencyField manually, a field of this class will be instantiated automatically for each currency field when a dataset is opened.

## See also

TField |  | Provide access to the contents of a single field in a record
TDataset |  | Base class for records-based data-access

The latest version of this document can be found at lazarus-ccr.sourceforge.net.