RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DBTables.AnsiToNativeBuf Function

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

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

Call AnsiToNativeBuf to convert a null-terminated string in the ANSI character set (used internally by Windows) to the character set associated with the database locale specified by the Locale parameter. 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 AnsiToNativeBuf to convert strings typed by the user into the character set used by a database table. 

 

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