Bde.DBTables.NativeToAnsiBuf
Delphi
procedure NativeToAnsiBuf(Locale: TLocale; Source, Dest: PAnsiChar; Len: Integer);
C++
extern DELPHI_PACKAGE void __fastcall NativeToAnsiBuf(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 character set of a specified locale into the ANSI character set.
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.