Bde.DBTables.TBDEDataSet.Translate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Translate(Src, Dest: PAnsiChar; ToOem: Boolean): Integer;  override;

C++

virtual int __fastcall Translate(char * Src, char * Dest, bool ToOem);

Properties

Type Visibility Source Unit Parent
function public
Bde.DBTables.pas
Bde.DBTables.hpp
Bde.DBTables TBDEDataSet

Description

Converts a data string between the Microsoft ANSI character set, and the local code page (OEM character set).

When the ToOem parameter is true, Translate converts the source string from the ANSI character set to the OEM character set. If ToOem is false, Translate converts the source string from the OEM character set to the Microsoft ANSI character set. By default, BDE datasets work with strings in the OEM character set.