Microsoft KB Archive/113006

= BUG: "Code Page Not Found" Caused by SET CPCOMPILE to 0 =

Article ID: 113006

Article Last Modified on 3/3/2005

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition
 * Microsoft FoxPro 2.5b
 * Microsoft FoxPro 2.5a
 * Microsoft FoxPro 2.5b
 * Microsoft FoxPro 2.6 Standard Edition
 * Microsoft FoxPro 2.6a Standard Edition
 * Microsoft FoxPro 2.0
 * Microsoft FoxPro 2.5b for MS-DOS
 * Microsoft FoxPro 2.5a
 * Microsoft FoxPro 2.5b for MS-DOS
 * Microsoft FoxPro 2.6 for MS-DOS
 * Microsoft FoxPro 2.6a Standard Edition
 * Microsoft FoxPro 2.6 for SCO/UNIX

-



This article was previously published under Q113006



SYMPTOMS
When a SET CPCOMPILE TO 0 command is issued, the following error message occurs:

  Code page not found

In Visual FoxPro 5.0, the following error message appears:

  Code Page number is invalid



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce Problem

 * 1) Add the following line to CONFIG.FP or CONFIG.FPW: CODEPAGE=AUTO
 * 2) In the Command window, type "SET CPCOMPILE TO 0" (without the quotation marks). The following error message occurs. Code page not found
 * 3) In the Command window, type "COMPILE  AS 0" (without the quotation marks).

Note that this works. An error message should be returned.

The SET CPCOMPILE command is new to FoxPro 2.6. This command specifies the code page for compiled programs.

Use SET CPCOMPILE to compile programs for a specific code page. The code page you specify with SET CPCOMPILE is used for programs compiled automatically by FoxPro, programs compiled using the Compile dialog box, and programs compiled with the COMPILE command. To override the code page you specified with SET CPCOMPILE, you can include the AS clause in the COMPILE command. For more information about COMPILE AS, see the FoxPro online Help.

The valid code pages that can be used with the SET CPCOMPILE TO command are listed below:

  Options     Language(s)                  Code pages ---

  CZECH     Czech                          852, 895, 1250, 10029 DUTCH    Dutch                          437, 850, 1252, 10000 GENERAL  English, French, German,

Modern Spanish, Portuguese and other Western European languages 437, 620, 850, 852, 857, 861, 865, 895, 1250, 1252, 1254, 10000, 10029

  GREEK     Greek                          737, 1253, 10006 HUNGARY  Hungarian                      852, 1250 ICELAND  Icelandic                      437, 850, 861, 1252, NORDAN   Norwegian, Danish              437, 850, 865, 1252, 10000 POLISH   Polish                         620, 852, 1250, 10029 RUSSIAN  Russian                        866, 1251, 10007 SLOVAK   Slovak                         852, 895, 1250, 10029 SPANISH  *Traditional Spanish           437, 850, 1252, 10000 SWEFIN   Swedish, Finnish               437, 850, 865, 1252, 10000 TURKISH  Turkish                        857, 1254 UNIQWT   Unique Weight                  437, 850, 1252, 10000

Additional query words: codepage kbvfp300 kbvfp500 kbvfp600

Keywords: kbbug KB113006

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.