Data.DB.TField.AsVariant
Delphi
property AsVariant: Variant read GetAsVariant write SetAsVariant;
C++
__property System::Variant AsVariant = {read=GetAsVariant, write=SetAsVariant};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Data.DB.pas Data.DB.hpp |
Data.DB | TField |
Description
Represents the Value of the field as a Variant.
Use AsVariant to read the value of the field's data into a Variant, or to assign a Variant value to the contents of the field. TField does not support Variant values, and raises an exception when an attempt is made to read the AsVariant property. TField also raises an exception when an attempt is made to set the AsVariant property, unless the Variant is of type varNull, in which case TField calls the Clear method.
Descendants of TField implement the AsVariant method to get or set the value of the field as a Variant.