ID: Q109198
The information in this article applies to:
In the Standard (16-bit) version of FoxPro for MS-DOS, versions 2.5x and later, if a project has a large number of files (any number above 75, depending on what types of files are in the project and the size of each file), and another file is added to the project, that file will be removed after the project is built. This behavior will occur after the project has been saved and reopened.
NOTE: This problem does NOT occur in the Extended (32-bit) version.
This problem might be caused by the combined compiled size of the files in the project.
At this time, there is no resolution or workaround for this problem.
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. Type the following code into a program file:
FOR i=1 to 108
SET PRINTER TO "prg" + ALLTRIM(STR(i)) + ".prg"
WAIT WINDOW "Writing Program: "+SET('PRINTER',1) NOWAIT
SET PRINTER ON
?"WAIT WINDOW 'This is a program' TIME 4"
SET PRINTER OFF
SET PRINTER TO
ENDFOR
SET TALK OFF
SET PRINTER TO test2.prg
SET PRINTER ON
? "BUILD PROJECT test FROM ;"
FOR outer = 1 to 108 STEP 9
IF outer = 100
? "prg" + ALLTRIM(STR(outer))+ ","
?? "prg"+ALLTRIM(STR(outer +1)) +","
?? "prg"+ALLTRIM(STR(outer +2)) +","
?? "prg"+ALLTRIM(STR(outer +3)) +","
?? "prg"+ALLTRIM(STR(outer +4)) +","
?? "prg"+ALLTRIM(STR(outer +5)) +","
?? "prg"+ALLTRIM(STR(outer +6)) +","
?? "prg"+ALLTRIM(STR(outer +7)) +","
?? "prg"+ALLTRIM(STR(outer +8))
ELSE
? "prg" +ALLTRIM(STR(outer))+ ","
?? "prg"+ALLTRIM(STR(outer +1)) +","
?? "prg"+ALLTRIM(STR(outer +2)) +","
?? "prg"+ALLTRIM(STR(outer +3)) +","
?? "prg"+ALLTRIM(STR(outer +4)) +","
?? "prg"+ALLTRIM(STR(outer +5)) +","
?? "prg"+ALLTRIM(STR(outer +6)) +","
?? "prg"+ALLTRIM(STR(outer +7)) +","
?? "prg"+ALLTRIM(STR(outer +8)) +",;"
ENDIF
ENDFOR
SET PRINTER OFF
SET PRINTER TO
DO test2.prg
SET SYSMENU ON
MODIFY PROJECT test
2. Press CTRL+W to save the project.
3. In the Command window, type:
MODIFY PROJECT test
4. Choose the Add button and select the TUTORIAL subdirectory. Add any
database. Repeat this step until six databases have been added.
5. From the Project menu, choose Project Info. A total of 108 programs and
6 databases should be shown.
6. From the File menu, choose Save, and close the project.
7. Reopen the project and choose Project Info from the Project menu. There
will be from 0 to 4 databases listed.
Additional reference words: FoxDos 2.50 2.50a 2.50b 2.60 buglist2.50
buglist2.50a
buglist2.50b buglist2.60
KBCategory: kbprg kbbuglist
KBSubcategory:
Last Reviewed: April 18, 1995