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

# TLongintField

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

Field class for 32-bit signed integer data

## Declaration

Source position: db.pas line 529

`type TLongintField = class(TNumericField)`
`protected`
`function GetAsFloat; override;`
`function GetAsLongint; override;`
`function GetAsString; override;`
`function GetAsVariant; override;`
`function GetDataSize; override;`
`procedure GetText(); override;`
`function GetValue();`
`procedure SetAsFloat(); override;`
`procedure SetAsLongint(); override;`
`procedure SetAsString(); override;`
`procedure SetVarValue(); override;`
`function GetAsLargeint; override;`
`procedure SetAsLargeint(); override;`
`public`
`constructor Create(); override;` |  | Create a new instance of TLongintField
`function CheckRange();` |  | Check whether a valid is in the allowed range of values for the field
`property Value: LongInt; [rw]` |  | Value of the field as longint
`published`
`property MaxValue: LongInt; [rw]` |  | Maximum value for the field
`property MinValue: LongInt; [rw]` |  | Minimum value for the field
`end;`

## Inheritance

`TLongintField` |  | Field class for 32-bit signed integer data
`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

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.

## See also

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

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