Solved

How do I clean up foxpro files/code?

Posted on 2007-04-10
5
305 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
I don't know what else to say.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
"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.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now