[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

How do I clean up foxpro files/code?

Posted on 2007-04-10
5
Medium Priority
?
336 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
4 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

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

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

You can provide a virtual interface for remote stakeholders in a SWOT analysis through a Google Drawing template. By making real time viewing and collaboration possible, your team can build a stronger product.
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

640 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