Bde.DBTables.TBDEDataSet.Translate

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Bde.DBTables.pas
Bde.DBTables.hpp
Unit: Bde.DBTables
Parent: TBDEDataSet

Delphi

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

C++

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

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.