Skip to content

TNumericField

Base class for all numerical data field classes.

Declaration

Source position: db.pas line 583

type

  TNumericField = class(TField)
  public
    constructor Create;
  published
    property Alignment; {d}
    property DisplayFormat: string; {rw}
    property EditFormat: string; {rw}
  end;

Description

TNumericField is an abstract class which overrides some of the methods of TField to handle numerical data. It also introduces or publishes a couple of properties that are only relevant in the case of numerical data, such as TNumericField.DisplayFormat and TNumericField.EditFormat.

Since TNumericField is an abstract class, it must never be instantiated directly. Instead one of the descendent classes should be created.

Properties

Member Visibility Description
Alignment read only published Alignment of the field.
DisplayFormat published Format string for display of numerical data.
EditFormat published Format string for editing of numerical data.
See all Properties

Methods

Member Visibility Description
Create public Create a new instance of TNumericField.
See all Methods

See also

Name Description
TField Provide access to the contents of a single field in a record.
TNumericField.DisplayFormat Format string for display of numerical data.
TNumericField.EditFormat Format string for editing of numerical data.
TField.Alignment Alignment for this field.
TIntegerField Alias for TLongintField.
TLargeIntField Field class for 64-bit signed integer data.
TFloatField Class for floating point values.
TBCDField Field class for Binary Coded Decimal (BCD) values.