[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 723

type TBinaryField = class(TField)

  class procedure CheckTypeSize(); override;

protected

  function GetAsString; override;

  procedure GetText(); override;

  procedure SetAsString(); override;

  procedure SetText(); override;

  procedure SetVarValue(); override;

public

  constructor Create(); override;

  

Create a new instance of a TBinaryField class.

published

  property Size;

  

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

|

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

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