Skip to content

TFloatField

Class for floating point values.

Declaration

Source position: db.pas line 753

type

  TFloatField = class(TNumericField)
  public
    constructor Create;
    function CheckRange : Boolean;
    property Value: Double; {rw}
  published
    property Currency: Boolean; {rwd}
    property MaxValue: Double; {rw}
    property MinValue: Double; {rw}
    property Precision: LongInt; {rwd}
  end;

Description

TFloatField is the class created when a dataset must manage floating point values of double precision. It exposes a few new properties such as Currency, MaxValue, MinValue and overrides some TField methods to work with floating point data.

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

Properties

Member Visibility Description
Currency published Is the field a currency field.
MaxValue published Maximum value for the field.
MinValue published Minimum value for the field.
Precision published Precision (number of digits) of the field in text representations.
Value public Value of the field as a double type.
See all Properties

Methods

Member Visibility Description
CheckRange public Check whether a value is in the allowed range of values for the field.
Create public Create a new instance of the TFloatField.
See all Methods

See also

Name Description
Currency Is the field a currency field.
MaxValue Maximum value for the field.
MinValue Minimum value for the field.