RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DBTables.NativeToAnsi Function

Converts a string from the character set of the given locale to the ANSI character set.

Pascal
procedure NativeToAnsi(Locale: TLocale; NativeStr: PAnsiChar; var AnsiStr: AnsiString); overload;
C++
NativeToAnsi(TLocale Locale, PAnsiChar NativeStr, AnsiString AnsiStr);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!