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

Top  Previous  Next

Syntax

<cTextString> := ConvTextOut( <cAnsiText> )

Parameters

<cAnsiText>

 

<cAnsiText> is the Ansi character string to be converted to the effective Cockpit application character set, if necessary. A conversion from Ansi to Oem character set will only be done if the effective Cockpit application character set is Oem. Otherwise the parameter is returned unchanged.

Return value

The Oem equivalent of the passed Ansi character string if the Cockpit application character set is Oem. Otherwise no conversion takes place.

Description

ConvTextOut converts the passed parameter from Ansi to Oem character set if necessary. Otherwise the parameter is returned as return value.

 

The API function used for this conversion is CharToOem.

Classification

Core

Category

Character set conversion

Quick Info

Library: cckptcor.lib / cckptcor.dll

See also

ConvTextIn, SetCX, Character set conversion

Example

 

#INCLUDE "CharacterSet.ch"

 

* Activate automatic Ansi/Oem conversion

SetCX(CX_OEM)

 

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

oemText := ConvTextOut("äöüÄÖÜ")