PRB: Resolving "APPERROR.PRG Not Found" in FoxApp ApplicationLast reviewed: June 27, 1995Article ID: Q109237 |
The information in this article applies to:
SYMPTOMSWhen you are running a FoxApp-generated application, the following Program Error message box appears:
File 'APPERROR.PRG' does not exist. CAUSEGiven a table and a screen, FoxApp, the Microsoft FoxPro Application Generator, creates a complete application. The project that FoxApp creates is fully accessible through the project manager for further customization. If a mistake is made while the project is being customized, the FoxApp- generated application may be unable to find its resources. In the above case, the application is unable to find the error handler procedure APPERROR, which is contained in the procedure file APPPROC.PRG. Only one procedure file can be set at a time, and in this case, a modification has been made to the application so that the SET PROCEDURE TO pointer command has been changed without restoring the original.
RESOLUTIONWhen you are modifying a FoxApp-generated application, consider the suggestions below, which refer to the following hypothetical procedure file:
* User-defined procedure file named "USERLIB.PRG" PROCEDURE Proc1 && one of many procedures inside USERLIB WAIT WINDOW 'Hello, world' a. Instead of using SET PROCEDURE TO <user-proc-file>, specify the file in which the procedure exists in the DO call. For example,
DO proc1 IN userlib.prg calls the procedure Proc1 in the file USERLIB.PRG. b. Save and restore the environment before and after every call to a procedure within a user-defined procedure file. oldProc = SET('PROCEDURE') && Save the old procedure SET PROCEDURE TO UserLib && user-defined procedure file DO Proc1 && call to UDF inside current procedure file SET PROCEDURE TO &oldProc && restore old procedure file Problems will arise if the procedure file contains code that has not been fully tested and contains errors. If an error occurs inside a procedure, the original problem occurs because the current error handler (APPERROR.PRG) cannot be found. MORE INFORMATION
Steps to Reproduce Problem
|
Additional reference words: FoxMac FoxDos FoxWin 2.00 2.50 2.50a 2.50b
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |