Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert FPD Application- mising procedures on compilation

Status
Not open for further replies.

cricket

Technical User
Jul 5, 2000
361
IE
I am trying to convert an old FPD2.6 application to VFP8
The old application was not built as a project, and any attempt to build it in VFP or FPD results in refernces to missing procedures.

These procedures could be in prg's, procedure files, or screeens, spread over several folders and subfolders.

Is there a good way to locate these procedures, or even where they might be called from. e.g. a good text search program?
 
I use an old DOS program called ts.exe (from Norton Tools I believe). It searches a directory for a string within a given file type (.prg, .spr etc) and highlights every occurrence. Very useful for problems such as yours. You may be able to find something similar to download.

Best of luck
Roger
 
These procedures could be in prg's, procedure files, or screeens, spread over several folders and subfolders.

I would think you would know where each program etc is: If you do...

Set the path to your default folder in your startup program with:
Set Default To Addbs(Justpath(Sys(16))) &&& sets the default to where your startup program is

Next set the path to all the folders or sub folders with:
set path to <<\folder1;\folder2....>>
next for procedures: set procedure to <<prg name>>

Now when you compile, vfp will know where to look to bring everything into the Exe
 
Cricket,

I agree with Imaginecorp's suggestion.

However, if it doesn't completely solve the problem, switch on the "Display Errors" option in the Build dialogue. This will display a list of all the missing components. You can then use Code References (on the Tools menu) to locate them. Once you have done so, add their paths to the SET PATH statement, as per Imaginecorp's suggestion.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Does the Old FPD2.6 proogram have a Project?
If is does open the project like a table, The full path to all files will be there.

If there is no project, can you make one ?


David W. Grewe Dave
 
Thank you all for the suggestions, which have been very helpful.
I have embarked on creating and building a project in fpd2.6 and when that is debugged I will attempt to build it in VFP

Some redundant or non-existinbg procedures are required by the Project Builder and I am using a text search to find the references as they are spread over a full hard drive. There are about 20 errors, so it will not take forever to find them. The major problem will be screens which are combinations of 3 or 4 scx's and are generated outside a project. These will have to be arranged, saved and generated inside the project.
 
Cricket,

Sounds like you've got a fair bit of work to do, but this is a useful exercise in any case. Anything you can do to clean up the project before you convert it will be worthwhile.

Good luck with it.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top