Microsoft KB Archive/113367

{| = BUG: FOXAPP-Generated Application: Copy Record Causes Error =
 * width="100%"|

ID: Q113367

The information in this article applies to:


 * Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, and 2.6
 * Microsoft FoxPro for Macintosh, version 2.5b

SYMPTOMS
In an application generated by FOXAPP.APP, choosing Copy Record from the Application menu causes one of the following error messages:

FoxPro for Windows --

Line No: 451 Program: _QOD0LJP03 Error: WINDOW 'CUSTOMER' has not been defined. Source: SHOW WINDOW (ALIAS) REFRESH

FoxPro for Macintosh

Line No: 463 Program: _QKY1AE1CI Error: WINDOW 'CUSTOMER' has not been defined. Source: SHOW WINDOW (ALIAS) REFRESH NOTE: Because it is randomly generated, the name on the "Program" line in the above error messages will vary.

CAUSE
The table and screen names are not the same.

RESOLUTION
Using FOXAPP.APP, regenerate the application, using the same name for the screen as for the table.

STATUS
Microsoft has confirmed this to be a problem in FoxPro versions 2.5, 2.5a, 2.5b, and 2.6 for Windows and in FoxPro version 2.5b for Macintosh. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Steps to Reproduce Problem
1. From the Run menu, choose Application, and then choose New.

2. Under Create Or Modify A Table, choose the From File button. Select

CUSTOMER.DBF from the TUTORIAL subdirectory in the main FoxPro directory, and then choose Open. 3. Under Screen Name, change the screen name from CUSTOMER.SCX to  TEST.SCX. 4. Choose the Generate button. 5. Save the application as TEST.APP.

6. After the application has been generated, press any key to start the

application. 7. From the Application menu, choose Copy Record. Additional reference words: FoxMac FoxWin 2.50 2.50a 2.50b 2.60 errmsg err msg buglist2.50 buglist2.50a buglist2.50b buglist2.60 generator KBCategory: kbother kbbuglist kberrmsg KBSubcategory: FxtoolGeneral
 * }