Data.DB.TField.GetAsVariant
Delphi
function GetAsVariant: Variant; virtual;
C++
virtual System::Variant __fastcall GetAsVariant();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Data.DB.pas Data.DB.hpp |
Data.DB | TField |
Description
Returns the value of the field as a Variant.
Descendants of TField that represent fields that hold any value that can be given as a Variant override the GetAsVariant method to return the value of the field as a Variant.
Trying to call the GetAsVariant method raises an exception.