CpConvert Function | |
-- 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.19
Syntax FUNCTION CpConvert(
nCurrentCodePage,
nNewCodePage,
cExpression
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public static Usual CpConvert(
Usual nCurrentCodePage = default,
Usual nNewCodePage = default,
Usual cExpression = default
)
Request Example
View SourceParameters
- 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:
UsualRemarks
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):
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