API:Data.DB.TVariantField.GetAsBoolean
[–] Properties | |
---|---|
Type: function | |
Visibility: protected | |
Source: Data.DB.pas Data.DB.hpp
| |
Unit: Data.DB | |
Parent: TVariantField |
Delphi
function GetAsBoolean: Boolean; override;
C++
virtual bool __fastcall GetAsBoolean();
Description
Returns the value of the field as a Boolean.
Data.DB.TVariantField.GetAsBoolean inherits from Data.DB.TField.GetAsBoolean. All content below this line refers to Data.DB.TField.GetAsBoolean.
Returns the value of the field as a Boolean.
Descendants of TField that represent Boolean fields override the GetAsBoolean method to return the value of the field as a Boolean.
Trying to call the GetAsBoolean method raises an exception.