Data.DB.TField.AsInteger

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

property AsInteger: Integer read GetAsInteger write SetAsInteger;

C++

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

プロパティ

種類 可視性 ソース ユニット
property public
Data.DB.pas
Data.DB.hpp
Data.DB TField


説明

フィールドの値を、32 ビット整数として表します。

AsInteger を使用すると、フィールドのデータの値を整数に読み込むか、整数値をフィールドの内容に割り当てます。 TField は、整数値をサポートしておらず、AsInteger プロパティの取得または設定が試みられた際に、例外が発生します。

整数フィールドを表す、または、フィールドの Value プロパティと整数値の間での変換をサポートする、TField の下位クラスは、AsInteger をオーバーライドして、フィールド値を、整数値として読み書きできるようにします。

関連項目

コード サンプル