Microsoft KB Archive/141913

= PRB: Error 1915 - Collating Sequence "" is not found =

Article ID: 141913

Article Last Modified on 12/3/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft FoxPro 2.6 Standard Edition
 * Microsoft Visual FoxPro 3.0b for Macintosh

-



This article was previously published under Q141913



SYMPTOMS
Attempting to run an executable created with FoxPro 2.x or Visual FoxPro 3.0, which reads a table or .dbf file with an index, results in this error:

Error 1915 - Collating Sequence " " is not found.

In an .exe file created FoxPro for the Mac 2.x and Visual FoxPro 3.0 for the Macintosh, the following command can trigger the same error. SET COLLATE TO "General"



CAUSE
The executable is not reading the Foxpro.int file at startup, and the application is attempting to use a table or .dbf file that has an index with a collating sequence and code page combination that is not internally supported.



RESOLUTION
Place the Foxpro.int file in the same directory as the .esl file; otherwise, error 1915 is generated each time a FoxPro executable uses a table or .dbf file that contains an index with a Collating Sequence and Code Page combination that is not internally supported.

Perform one of the following options to get the Foxpro.int file into the directory with the .esl file.

Option One (recommended)

 * 1) Include the Foxpro.int file in the application's distribution directory.
 * 2) When using FoxPro 2.x, make sure that the Foxpro.int file gets placed in the directory where the .esl file is located. When using Visual FoxPro's Setup Wizard to generate distribution disks (during "Step 6 - File Summary"), change the TARGET DIR property for the Foxpro.int file from AppDir to WinSysDir.

Option Two

 * 1) Include the Foxpro.int file in the application distribution directory.
 * 2) Create a batch file to copy the Foxpro.int file from the application directory to the .esl file's directory, and include the batch file in the application distribution directory.
 * 3) In the Setup Wizard, Step 4 - Setup Options, change the POST-SETUP EXECUTABLE entry to the name of the batch file.

Option Three
Manually copy the Foxpro.int file to the directory where the .esl file is.



STATUS
This behavior is by design.



Steps to Reproduce Behavior
The following steps create a table or .dbf file that has an index with a collating sequence and code page combination that is not internally supported in FoxPro.

NOTE: The following steps are performed within Microsoft Visual FoxPro for Windows, version 3.0, Professional Edition and the Foxpro.int file must not be in the Windows\System directory.

  Modify the Visual FoxPro for Windows Config.fpw file to include the following line: CODEPAGE=AUTO  Start Visual FoxPro for Windows. If Visual FoxPro for Windows was already running when the change to the Config.fpw file in step 1 was made, you will need to restart Visual FoxPro for the change to take affect.  To set collate to general, type the following command in the Command window: SET COLLATE TO "GENERAL"  Create a new table or .dbf file, and name it Cp850.dbf. Add two fields named LASTNAME and FIRSTNAME as Character type. Close the Table Designer, and save the changes.</li>  To create an index and close the open table, type the following commands in the Command window: INDEX ON LASTNAME TAG LASTNAME USE </li> To set the code page, type the following command in the Command window:

DO \VFP\TOOLS\CPZERO\CPZERO with "CP850.DBF", 850

</li> Create an Executable to browse the CP850 table.</li> Run the Executable outside of Visual FoxPro. The following error (Error 1915) occurs when the Table is opened:

Collating Sequence "General" is not found.

</li></ol>

Keywords: kbprb KB141913

-

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

© Microsoft Corporation. All rights reserved.