Data.DB.TField.GetAsAnsiString

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: protected
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TField

Delphi

function GetAsAnsiString: AnsiString; virtual;

C++

virtual System::AnsiString __fastcall GetAsAnsiString();

Description

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.

See Also