Solved

How do I clean up foxpro files/code?

Posted on 2007-04-10
5
321 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
  • 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 500 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

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.
Read about the ways of improving workplace communication.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

730 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