Bde.DBTables.NativeToAnsi
Delphi
procedure NativeToAnsi(Locale: TLocale; NativeStr: PAnsiChar;
var AnsiStr: AnsiString); overload;
C++
extern DELPHI_PACKAGE void __fastcall NativeToAnsi(void * Locale, char * NativeStr, System::AnsiString &AnsiStr)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Bde.DBTables.pas Bde.DBTables.hpp |
Bde.DBTables | Bde.DBTables |
Description
Converts a string from the character set of the given locale to the ANSI character set.
Call NativeToAnsi to convert a string represented in the character set of the Locale parameter to the ANSI character set (used internally). The resulting string is returned as the AnsiStr parameter.
Use NativeToAnsi to convert strings retrieved from a database table into strings that can be displayed in the user interface.