Skip to content

TLongintField

Field class for 32-bit signed integer data.

Declaration

Source position: db.pas line 604

type

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

Description

TLongintField is instantiated when a dataset must manage a field with 32-bit signed data: the data type ftInteger. It overrides some methods of TField to handle integer data, and sets some of the properties to values for integer data. It also introduces some methods and properties specific to integer data such as MinValue and MaxValue.

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

Properties

Member Visibility Description
MaxValue published Maximum value for the field.
MinValue published Minimum value for the field.
Value public Value of the field as longint.
See all Properties

Methods

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

See also

Name Description
TField Provide access to the contents of a single field in a record.
MaxValue Maximum value for the field.
MinValue Minimum value for the field.