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

# TWordField

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

Field class for word (16-bit unsigned integer) data

## Declaration

Source position: db.pas line 597

`type TWordField = class(TLongintField)`
`protected`
`function GetDataSize; override;`
`public`
`constructor Create(); override;` |  | Create a new instance of the TWordField class.
`end;`

## Inheritance

`TWordField` |  | Field class for word (16-bit unsigned integer) data
`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

TWordField is the class created when a dataset must manage 16-bit unsigned integer data, of datatype ftWord. It exposes no new properties, but simply overrides some methods to manage 16-bit unsigned integer data.

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

## See also

TField |  | Provide access to the contents of a single field in a record
TNumericField |  | Base class for all numerical data field classe
TLongintField |  | Field class for 32-bit signed integer data
TSmallIntField |  | Field class for smallint (16-bit signed integer) data

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