EasyTable: Single-File Embedded BDE Replacement
Database for Delphi and C++Builder


TDataSet.Translate
TDataSet
Top 

Implements a virtual procedure to copy a data string from a source to a destination, optionally performing character translation during the copy.

function Translate(Src, Dest: PChar; ToOem: Boolean): Integer; virtual;

Description
As implemented by TDataSet, Translate copies a source string to a destination string, and ignores the value passed in ToOem. Translate provides a fallback method for derived dataset objects that do not reimplement Translate.

In some descendant classes, Translate converts the source string from ANSI (the native character mapping for the VCL) to OEM (the native character mapping for the BDE) when ToOem is True, and reverses that translation when ToOem is False.


© AidAim Software EasyTable: Easytable Single-file Embedded Database Bde Replacement Delphi C\+\+builde