Data.DB.TField.GetAsBoolean
Delphi
function GetAsBoolean: Boolean; virtual;
C++
virtual bool __fastcall GetAsBoolean(void);
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 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.