ConvTextIn - Convert a text string from the Cockpit application character set to Ansi

Top  Previous  Next

Syntax

<cAnsiText> := ConvTextIn( <cTextString> )

Parameters

<cTextString>

 

<cTextString> is the text string to be converted to the Ansi character set from the effective Cockpit application character set. A conversion will only be performed if necessary. Otherwise the parameter is returned unchanged.

Return value

The Ansi equivalent of the passed text string.

Description

ConvTextIn converts the passed parameter from the effective Cockpit application character set to the Ansi character set if necessary

 

The API function used for this conversion is OemToChar.

Classification

Core

Category

Character set conversion

Quick Info

Library: cckptcor.lib / cckptcor.dll

See also

ConvTextOut, SetCX, Character set conversion

Example

 

#INCLUDE "CharacterSet.ch"

 

* Activate automatic Ansi/Oem conversion

SetCX(CX_OEM)

 

* Translate all german umlauts from OEM to ANSI character set (source must be in OEM)

ansiText := ConvTextIn("äöüÄÖÜ")