PRB: "File <Name>.PRG Not Found" w/ FoxApp-Created ApplicationID: Q119283 2.5x 2.60 | 2.5x 2.60 kbprg kbprb
The information in this article applies to:
SYMPTOMSThe error message "File <name>.prg not found" appears with random program names not found; for example, "File a.prg not found."
CAUSEIf the application was created by FoxApp, this error occurs because the APPCTRL screen uses a macro substitution variable called mname, and the database that the application is built upon contains a field named MNAME.
RESOLUTIONThere are two ways to solve this problem:
Solution 1Edit the screen set and change the variable name from mname to m.mname. To do this: 1. Close the screen if it is still running, and type the following command 2. If a screen set is not listed, choose the Add button and add the
3. Select APPCTRL and choose the Edit button.
4. In the APPCTRL.SCX Screen Design window, double-click the Search button. 5. Change the DO CASE statement to look like the following by adding "m."
6. Save the changes and rebuild the project.
Solution 2Rename the MNAME field in the database to some other name; for example, use MIDDLE for the field name instead of MNAME.
MORE INFORMATION
Steps to Reproduce Problem1. In the Command window, issue the following commands:
2. Locate the field called ONO. Change the name of the field to MNAME.
3. In the Command window, type:
4. In the FoxPro Application Generator dialog box, choose the From File
5. In the FoxPro Application Generator dialog box, choose the Generate
6. Save the application with the name SALESMAN.APP.
7. Run the application by pressing any key. Once the screen is running, The following error messages will appear:
Additional reference words: FoxDos FoxWin 2.50 2.50a 2.50b 2.60 named
KBCategory: kbprg kbprb
KBSubcategory: FxprgMacrosub
|
|
Last Reviewed: May 1, 1996 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |