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

Description

Returns the value of the field as a Boolean.

GetAsBoolean returns True if the length of the field's value is greater than zero and the first char is T, t, Y or y.

See Also