After adding a file to a project, you can determine its code page. The method you use depends on whether the file is a table (.dbf file) or a text file.
To determine the code page of a text file
Open the .
Under Other, select the text file whose code page you want to know.
From the Project menu, choose Project Info.
To determine the code page of a table
Use the CPDBF( ) Function.
When you build an application from a project, the Project Manager automatically integrates the files in the project no matter how many different code pages they have. The resulting application has the current code page.
|When you add a .dbf file to a project, you don't have to specify a code page for the file because Visual FoxPro automatically determines the code page from the file's code page mark. However, when you add a text file to a project, you must specify a code page for the file because Visual FoxPro cannot determine the code page automatically.|
To prepare a program for use with another code page, specify the original code page when you save or compile the program on the new platform. For example, to prepare a program created with Visual FoxPro for Macintosh for use with Visual FoxPro, specify the appropriate MS-DOS code page when you save or compile the program with Visual FoxPro. If you use the COMPILE Command, specify the code page using the AS clause. Alternatively, specify the code page with SET CPCOMPILE Command before compiling the program.