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: PChar; var AnsiStr: string);
C++
NativeToAnsi(TLocale Locale, const char * NativeStr, AnsiString AnsiStr);

DBTables

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. 

 

AnsiToNative 

NativeToAnsiBuf

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!