Microsoft KB Archive/95586

= PRB: Unable to Find Unknown  =

Article ID: 95586

Article Last Modified on 12/3/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft FoxPro 2.0
 * Microsoft FoxPro 2.5b for MS-DOS
 * Microsoft FoxPro 2.5a
 * Microsoft FoxPro 2.5b
 * Microsoft FoxPro 2.5a

-



This article was previously published under Q95586



SYMPTOMS
When you are building a project, the &quot;Unable to Find Unknown &quot; message appears.



CAUSE
There are two causes for this error message. When you are passing an array to a procedure file, either the array has not been defined as EXTERNAL or it has been renamed in the procedure file using the PARAMETERS statement.

When an array is passed to a procedure, the Project Manager must be able to identify the array; otherwise, the above error message appears.



RESOLUTION
If the same array name is used in the calling program and the procedure, declare the array as PUBLIC or as EXTERNAL in the calling program.

If the array name is changed in the procedure by using the PARAMETERS statement, then must be declared as PUBLIC or EXTERNAL.

Alternatively, the references may be resolved by dimensioning in the procedure and providing the appropriate dimensions for the array. The EXTERNAL statement is for use only by the Project Manager and is ignored during program execution.

The Program Example section should be changed as following:

Program Example
  Create a program called TEST.PRG using following code: DIMENSION invoice(4) STORE 'Paid' TO invoice DO dispinvo   Create a program called DISPINVO.PRG using the following code: ?invoice(1) ?invoice(2) ?invoice(3) ?invoice(4) RETURN  Include both the programs in a new project and select TEST.PRG as the MAIN Program. Select the Build option in the Project dialog box, and then select one of the Rebuild Project, Build Application, or Build Executable options.

NOTE: To keep the error message from appearing, add the following line of code to the beginning of DISPINVO.PRG: EXTERNAL ARRAY invoice

