?
Solved

How do I clean up foxpro files/code?

Posted on 2007-04-10
5
Medium Priority
?
331 Views
Last Modified: 2013-11-26
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


0
Comment
Question by:BPSAdmin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 33

Expert Comment

by:CarlWarner
ID: 18883981
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
 
LVL 33

Expert Comment

by:CarlWarner
ID: 18884297
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
 

Accepted Solution

by:
mhoganid8 earned 1000 total points
ID: 18885697
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
 
LVL 33

Expert Comment

by:CarlWarner
ID: 19076174
I don't know what else to say.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Online collaboration can help businesses be more efficient, help employees grow their skills and foster a team environment.
"Disruption" is the most feared word for C-level executives these days. They agonize over their industry being disturbed by another player - most likely by startups.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Simple Linear Regression

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question