SYS(3101) - COM Code Page Translation

Sets the default code page to use for character data translation during COM interoperability in the current data session.

SYS(3101 [, nCodePage])

Parameters

  • nCodePage
    The code page (integer) to use for translating character data during COM interoperability. An error will occur if an invalid code page is passed.

Return Value

SYS(3101) returns the current code page. If an nCodePage parameter is included, the code page previously set is returned. The default setting is 0 (machine).

Remarks

If a COMPROP(,"UTF8",1) setting is in effect, it will take precedence over the SYS(3101) setting.

The CursorAdapter ADOCodePage property allows you to control the code page used for character translation when working with ADO data.

Note

It is recommended that you limit use of this function to your specific COM translation needs and restore it to the previous default setting when done.

See Also

Reference

COMPROP( ) Function
SYS( ) Functions Overview

Other Resources

Code Pages in Visual FoxPro