RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBDEDataSet.Translate Method

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

Pascal
function Translate(Src: PChar; Dest: PChar; ToOem: Boolean): Integer; override;
C++
virtual __fastcall int Translate(const char * Src, const char * Dest, Boolean ToOem);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!