CPCURRENT( ) Function
Returns the code page setting (if any) in your Visual FoxPro configuration file, or returns the current operating system code page.
CPCURRENT([1 | 2])
Remarks
CPCURRENT( ) returns one of the following:
In Visual FoxPro, the current operating system code page if the CODEPAGE configuration item isn't included in your configuration file. In previous versions of FoxPro, 0 is returned if the CODEPAGE configuration item isn't included in your configuration file.
The code page number specified in the CODEPAGE configuration item. For example, CPCURRENT( ) returns 852 if the following line is included in your configuration file:
CODEPAGE = 852
The current operating system code page if you have included the following line in your configuration file:
CODEPAGE = AUTO
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 and Developing International Applications.
See Also
CPCONVERT( ) Function | CPDBF( ) Function | MODIFY COMMAND Command | MODIFY FILE Command | SET NOCPTRANS Command