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

TLargeintField

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

Field class for 64-bit signed integer data

Declaration

Source position: db.pas line 555

type TLargeintField = class(TNumericField)

protected

  function GetAsFloat; override;

  function GetAsLongint; override;

  function GetAsLargeint; override;

  function GetAsString; override;

  function GetAsVariant; override;

  function GetDataSize; override;

  procedure GetText(); override;

  function GetValue();

  procedure SetAsFloat(); override;

  procedure SetAsLongint(); override;

  procedure SetAsLargeint(); override;

  procedure SetAsString(); override;

  procedure SetVarValue(); override;

public

  constructor Create(); override;

  

Create a new instance of the TLargeintField class

  function CheckRange();

  

Check whether a values falls within the allowed range

  property Value: LargeInt; [rw]

  

Field contents as a 64-bit integer value

published

  property MaxValue: LargeInt; [rw]

  

Maximum value for the field

  property MinValue: LargeInt; [rw]

  

Minimum value for the field

end;

Inheritance

TLargeintField

  

Field class for 64-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

TLargeIntField is instantiated when a dataset must manage a field with 64-bit signed data: the data type ftLargeInt. It overrides some methods of TField to handle int64 data, and sets some of the properties to values for int64 data. It also introduces some methods and properties specific to 64-bit integer data such as MinValue and MaxValue.

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

See also

TField

  

Provide access to the contents of a single field in a record

MinValue

  

Minimum value for the field

MaxValue

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