Data.DB.TField.GetAsFloat
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: protected | |
| Source: Data.DB.pas Data.DB.hpp
| |
| Unit: Data.DB | |
| Parent: TField | |
Delphi
function GetAsFloat: Double; virtual;
C++
virtual double __fastcall GetAsFloat();
Description
Returns the value of the field as a Double.
Descendants of TField that represent Double fields override the GetAsFloat method to return the value of the field as a Double.
Trying to call the GetAsFloat method raises an exception.