PRB: Unable to Find Proc./Func. <Name>ID: Q102586 2.50 2.50a 3.00| 2.00 2.50 2.50a
The information in this article applies to:
SYMPTOMSWhen you are building an application (.APP) from a project that makes reference to a function or procedure that is contained within another application, FoxPro is unable to resolve the external reference. The Build function will display the following error message:
RESOLUTIONAt the bottom of the file, create a procedure stub that references the external function. Additional ways to resolve this problem and their advantages and disadvantages are explained at the end of the "More Information" section below. NOTE: Using the EXTERNAL PROCEDURE <name> compiler directive does not resolve the problem.
MORE INFORMATIONThe code example below demonstrates this error. Because the main .APP file makes reference to a procedure stored in another .APP file, the Build function is unable to resolve the reference. 1. Open a new program file. Name it SUBAPP.PRG and include the 2. Save the program, and include it in a new project named SUBAPP.PJX.
3. Create a file named MAINAPP.PRG. Include the following code:
4. Save the program and add it to a new project named MAINAPP.PJX.
5. In the alert box, choose Locate and choose SUBAPP.APP, which
6. Rebuild MAINAPP.PJX. Note that once again the "Unable to Find
You can resolve this problem in one of three ways:
NotesBoth the second and the third options will eliminate the problem. However, while the second option requires the source code to be available and that it be built into the application, increasing its size, the third option requires that the entire called application that includes the single function be sent along with the calling application. If the source code to the function is not available, and you would like to avoid the alert box, use the third method. Additional reference words: VFoxWin 3.00 FoxDos FoxWin 2.00 2.50 2.50a errmsg err msg gengraph.app refreshgrph showgrph updategrph updategr genpd.app KBSubcategory: FxtoolGeneral
|
Last Reviewed: May 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |