API:Data.DB.TStringField.GetAsAnsiString
Delphi
function GetAsAnsiString: AnsiString; override;
C++
virtual System::AnsiString __fastcall GetAsAnsiString();
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 an AnsiString.
Data.DB.TStringField.GetAsAnsiString inherits from Data.DB.TField.GetAsAnsiString. All content below this line refers to Data.DB.TField.GetAsAnsiString.
Returns the value of the field as an AnsiString.
Descendants of TField that represent AnsiString fields override the GetAsAnsiString method to return the value of the field as an AnsiString.
Trying to call the GetAsString method raises an exception.