Data.DB.TField.AsInteger

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AsInteger: Integer read GetAsInteger write SetAsInteger;

C++

__property int AsInteger = {read=GetAsInteger, write=SetAsInteger, nodefault};

Properties

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

Description

Represents the field's value as a 32-bit integer.

Use AsInteger to read the value of the field's data into an integer, or to assign an integer value to the contents of the field. TField does not support integer values, and raises an exception when an attempt is made to get or set the AsInteger property.

Descendants of TField that represent integer fields or that support conversions between the field's Value property and an integer value, override AsInteger to read and write the value of the field as an integer value.

See Also

Code Examples