FireDAC.Comp.DataSet.TFDSQLTimeIntervalField.GetAsVariant
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: protected | |
| Source: FireDAC.Comp.DataSet.pas FireDAC.Comp.DataSet.hpp
| |
| Unit: FireDAC.Comp.DataSet | |
| Parent: TFDSQLTimeIntervalField | |
Delphi
function GetAsVariant: Variant; override;
C++
virtual System::Variant __fastcall GetAsVariant();
Description
Returns the value of the field as a Variant.
FireDAC.Comp.DataSet.TFDSQLTimeIntervalField.GetAsVariant inherits from Data.DB.TField.GetAsVariant. All content below this line refers to Data.DB.TField.GetAsVariant.
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.