ID: Q123001
The information in this article applies to:
Building a Project causes this error:
Unable to find library.
In version 2.6 of FoxPro for Windows and FoxPro for DOS 2.6, you can have multiple Procedure libraries by using the SET LIBRARY TO command with program (.PRG) files. Therefore, the following command statement is a valid statement:
SET LIBRARY TO PROCLIB2.PRG
However when building the application, the Project manager is not able to
identify or locate this file because the Project manager is expecting a
.PLB or .FLL file extension, the only values that were valid in previous
FoxPro versions.
Change the SET LIBRARY TO PROCLIB2.PRG to read as follows:
SET LIBRARY TO "PROCLIB2.PRG"
Include the quotation marks. Add the PROCLIB2.PRG file to the project
manually.
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
1. Create a program file called MAIN.PRG with the following commands:
SET PROCEDURE TO PROCLIB1.PRG
SET LIBRARY TO PROCLIB2.PRG
DO proc1
DO proc2
RETURN
2. Create the first procedure file (PROCLIB1.PRG) by using these commands:
PROCEDURE proc1
WAIT WINDOW " this is from procedure file 1"
RETURN
3. Create the second procedure file (PROCLIB2.PRG) by using these commands:
PROCEDURE proc2
WAIT WINDOW "this is from procedure file 2"
RETURN
4. Create a project called Test, and add the MAIN.PRG program. Build the
project. Two errors will occur. To resolve the errors, edit MAIN.PRG.
Change the SET LIBRARY TO proclib2.prg to read as follows:
SET LIBRARY TO "PROCLIB2.PRG"
Then add the program PROCLIB2.PRG to the project as a program file, and
rebuild the project.
Additional reference words: FoxDos FoxWin 2.60 buglist2.60
KBCategory: kbprg kbbuglist
KBSubcategory: FxtoolProjman
Last Reviewed: June 27, 1995