Bde.DBTables.AnsiToNativeBuf
Delphi
procedure AnsiToNativeBuf(Locale: TLocale; Source, Dest: PAnsiChar; Len: Integer);
C++
extern DELPHI_PACKAGE void __fastcall AnsiToNativeBuf(TLocale Locale, char * Source, char * Dest, int Len);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Bde.DBTables.pas Bde.DBTables.hpp |
Bde.DBTables | Bde.DBTables |
Description
Converts a string from the ANSI character set to the character set associated with a given locale.
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.