How do I clean up foxpro files/code?

I was handed a foxpro application to maintain.  Unfortunately there is no documentation, the files required to run the application are spread through out 3 folders and there is a lot of duplication like this:
C:\Fox\form1,form2,form3,form4
C:\Fox\Source\form1,form2,form3,form4
C:\Fox\Code\form1,form2,form3,form4,

Problem:
I make a change to c:\fox\form1 and rebuild the app,
Foxpro rebuilds with c:\fox\form1 and c:\fox\source\form2, even though the project manager shows a path of c:\fox\form2.  How can I get foxpro to rebuild with all the forms in c:\fox\?

I am new to foxpro so please be specific in your reply.

Here is what I am working with:
Language: foxpro 7.0 sp1
SBS with Windows Server 2003
Network/client application
SQL Server 2000


BPSAdminAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CarlWarnerCommented:
I assume you're looking at the Project Manager view of the total application that gets compiled into an exe as a general rule.  If you need to add forms to that project, highlight the Forms section and click on the New pushbutton if you think you need to add more forms.  However, when you Build/compile what you already have, it should protest if there is a missing form.  If it doesn't protest, it has everything it needs and those other folders with files may be duplicates that get used in the case of a screwup or data corruption-- IOW, it may be the former developers method of source code control.
0
CarlWarnerCommented:
Again, IF you need to add forms to the project:

How to: Add Files to a Project
http://msdn.microsoft.com/library/en-us/dv_foxhelp9/html/d622e6be-e678-4883-9d13-be54b58a8c3f.asp?frame=true
0
mhoganid8Commented:
There are two ways VFP figures out what files to use in a project. First, the files that appear in the project manager (see Carl's link). If you click on one of the forms in the project manager's list of forms, it will display the path.

The second way is by direct reference in the code. If a menu selection or chunk of code runs something like DO FORM Source/FORM1, the FORM1 in the SOURCE directory will automatically be added to the project the next time the project is BUILT or COMPILED into an EXE.

What you might want to do is search the files for occurances of "Source/" to rule out the latter, and remove and add forms with the proper pathing in the project manager to rule out the former.

HTH
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CarlWarnerCommented:
I don't know what else to say.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Project Management

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.