Click or drag to resize

CpConvert Function

X#
-- todo --
Converts character or memo fields or character expressions to another code page.

Namespace:  XSharp.VFP
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.21
Syntax
 FUNCTION CpConvert(
	nCurrentCodePage,
	nNewCodePage,
	cExpression
) AS USUAL CLIPPER
Request Example View Source

Parameters

nCurrentCodePage (Optional)
Type: Usual
Specifies the code page that cExpression is being converted from.
nNewCodePage (Optional)
Type: Usual
Specifies the code page to which cExpression is converted.
cExpression (Optional)
Type: Usual
Specifies the character expression that's converted.

Return Value

Type: Usual
Remarks
Note that CPConvert( ) isn't required for normal cross-platform functioning of the product. It is used strictly to access the underlying translation facilities of X#. For example, if the variable gcCharExpr contains a character that looks like on the Macintosh (in code page 10000) then CPConvert( ) will return a character that looks like in Microsoft Windows (code page 1252):
X#
1CPConvert(10000, 1252, gcCharExpr)
For additional information on code pages and X#'s international support, see Code Pages Supported by X# and Developing International Applications.
See Also