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

# TBytesField

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

Field class for fixed size byte array values

## Declaration

Source position: db.pas line 748

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

## Inheritance

`TBytesField` |  | Field class for fixed size byte array values
`TBinaryField` |  | Field class for working with binary field data
`TField` |  | Provide access to the contents of a single field in a record
`TComponent,IUnknown,IInterfaceComponentReference`
`TPersistent`
`TObject`

## Description

TBytesField is the class used when a dataset must manage data of fixed-size binary type. (TField.DataType equals ftBytes). It initializes some of the properties of the TField class to be able to work with fixed-size byte fields.

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

## See also

TDataset |  | Base class for records-based data-access
TField |  | Provide access to the contents of a single field in a record
TVarBytesField |  | Field class for variable size byte array values

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