Show: Delphi C++
Display Preferences

Data.DB.TField.AsLargeInt

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AsLargeInt: Largeint read GetAsLargeInt write SetAsLargeInt;

C++

__property __int64 AsLargeInt = {read=GetAsLargeInt, write=SetAsLargeInt};

Properties

Type Visibility Source Unit Parent
property public
Data.DB.pas
Data.DB.hpp
Data.DB TField

Description

Represents the field value as a large integer.

Use AsLargeInt to:

Assign the large integer field value to a 64-bit integer variable.

Assign a 64-bit integer value to the large integer field.

For example, this code assigns a 64-bit integer value to a large integer field:

MyLargeIntegerField.AsLargeInt := 2147483648;
MyLargeIntegerField->AsLargeInt = 2147483648;

To assign a large integer field value to a 64-bit integer, use code similar to this:

LargeIntegerVariable := MyLargeIntegerField.AsLargeInt;
LargeIntVariable = MyLargeIntegerField->AsLargeInt;

If a value assigned to the field is not within the range established by the MinValue and MaxValue properties, an EDatabaseError exception is raised.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance