Bde.DBTables.NativeToAnsi

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Bde.DBTables.pas
Bde.DBTables.hpp
Unit: Bde.DBTables
Parent: Bde.DBTables

Delphi

procedure NativeToAnsi(Locale: TLocale; NativeStr: PAnsiChar;
var AnsiStr: AnsiString); overload;

C++

extern DELPHI_PACKAGE void __fastcall NativeToAnsi(TLocale Locale, char * NativeStr, System::AnsiString &AnsiStr)/* overload */;

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.

See Also