Data.DB.TStringField.GetAsBoolean
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: protected | |
| Source: Data.DB.pas Data.DB.hpp
| |
| Unit: Data.DB | |
| Parent: TStringField | |
Delphi
function GetAsBoolean: Boolean; override;
C++
virtual bool __fastcall GetAsBoolean();
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.