CPCURRENT( ) Function

See Also

Returns the code page setting (if any) in your Visual FoxPro configuration file, or returns the current operating system code page.

Syntax

CPCURRENT([1 | 2])

Remarks

CPCURRENT( ) returns one of the following:

In Visual FoxPro, CPCURRENT(1) returns the current operating system code page, regardless of your configuration CODEPAGE setting.

CPCURRENT(2) always returns the underlying operating system code page, regardless of your configuration CODEPAGE setting. For example, if you're running Windows, CPCURRENT(2) returns the MS-DOS code page.

For additional information on code pages and Visual FoxPro's international support, see Code Pages Supported by Visual FoxPro in Chapter 18, Developing International Applications, in the Programmer's Guide.