API:Data.DB.TBooleanField.GetAsBoolean

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetAsBoolean: Boolean; override;

C++

virtual bool __fastcall GetAsBoolean();

Properties

Type Visibility Source Unit Parent
function protected
Data.DB.pas
Data.DB.hpp
Data.DB TBooleanField

Description

Returns the value of the field as a Boolean.

Data.DB.TBooleanField.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.

See Also