Skip to content

TFMTBCDField

Fixed precision floating point data field.

Declaration

Source position: db.pas line 1024

type

  TFMTBCDField = class(TNumericField)
  public
    constructor Create;
    function CheckRange : Boolean;
    property Value: TBCD; {rw}
  published
    property Precision: LongInt; {rwd}
    property Currency: Boolean; {rw}
    property MaxValue: string; {rw}
    property MinValue: string; {rw}
    property Size; {d}
  end;

Description

TFMTBCDField is the field created when a data type of ftFMTBCD is encountered. It represents usually a fixed-precision floating point data type (BCD : Binary Coded Decimal data) such as the DECIMAL or NUMERIC field types in an SQL database.

Properties

Member Visibility Description
Currency published Does the field contain currency data ?
MaxValue published Maximum value for the field.
MinValue published Minimum value for the field.
Precision published Total number of digits in the BCD data.
Size read only published Number of digits after the decimal point.
Value public The value of the field as a BCD value.
See all Properties

Methods

Member Visibility Description
CheckRange public Check value if it is in the range defined by MinValue and MaxValue.
Create public Create a new instance of the TFMTBCDField class.
See all Methods

See also

Name Description
TFloatField Class for floating point values.