RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DBTables.NativeToAnsiBuf Function

Converts a string from the character set of a specified locale into the ANSI character set.

Pascal
procedure NativeToAnsiBuf(Locale: TLocale; Source: PAnsiChar; Dest: PAnsiChar; Len: Integer);
C++
NativeToAnsiBuf(TLocale Locale, PAnsiChar Source, PAnsiChar Dest, int Len);

Call NativeToAnsiBuf to convert a null-terminated string in the character set of the Locale parameter to the ANSI character set (used internally). The resulting string is copied into the buffer pointed to by the Dest parameter. Use the Len parameter to specify the size of this buffer. 

Use NativeToAnsiBuf to convert strings from a database table into the ANSI character set so that they 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!