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

# TBinaryField

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

Field class for working with binary field data

## Declaration

Source position: db.pas line 737

`type TBinaryField = class(TField)`
`public`
`constructor Create(); override;` |  | Create a new instance of a TBinaryField class.
`published`
`property Size: Integer;` |  | Size of the binary data
`end;`

## Inheritance

`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,IFPObserved`
`TObject`

## Description

TBinaryField is an abstract class, designed to handle binary data of variable size. It overrides some of the properties and methods of the TField class to be able to work with binary field data, such as retrieving the contents as a string or as a variant.

One must never create an instance of TBinaryField manually, it is an abstract class. Instead, a descendent class such as TBytesField or TVarBytesField should be created.

## See also

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

Documentation generated on: Feb 26 2014