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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving from foxpro 2.5 to visual foxpro

Status
Not open for further replies.

Faheemi

Programmer
Sep 2, 2001
59
HK
Hi there,

I have an old accounting system developed by some one in Foxpro 2.5. The problem is I want to move from win 98 to winxp. But I understood if I do so I cannot use the Foxpro 2.5 anymore.

Is there anyway or an utility which converts all the codes so that it works in latest visual foxpro versions and I can run it on winxp. To be frank I do not have much knowledge in Foxpro. Please give me a solution which makes me happy.

Thanks
 
The solution that might make you happy is that you can run the application under windows xp.
Unchanged.
There is no "SuperUtility" that converts old foxpro code to visual foxpro.
Visual foxpro itself offers you some conversion when you open a foxpro project file in visual foxpro.
Functional or visual conversion, but note that these conversions are far from perfect.

A big comfort is that most code will run under visual foxpro.
An even larger comfort is that it will run under xp unchanged as fp 2.5 application.

Rob.
 
I used the VFP conversion utility. I concur with Rob that it is far from perfect. It takes your current VFP form and generates a new VFP form. The conversion program, based on where your objects (text box, buttons, etc.), groups data together in containers and gives them very strange names.

It's worth trying, because it doesn't take long, but keep a backup of your original 2.5 code.

After going thru the process once on a fairly large project I am inclined to say recreate the forms manually and change the code. That may not be a trivial issue since you could have code in various snippets and that code now goes in different areas on the VFP form (Events, Buttons, etc.).

In my opinion, you can use the routines and programs that work as a starting point, but the app needs to be rewritten in order to do it right and avoid long-term maintenance issues.

A side note - I, and probably others, are available for consulting services and my be able to do it for.

Feel free to contact me if you're interested in service or just want to discuss what you need to do. My email can be found on my website.



Jim Osieczonek
Delta Business Group, LLC
 
Dear Rob,

Are you saying that I could run the foxpro 2.5 (.prg files) directly in windows xp without any conversion and hassles? I still have not tried it yet. But I remember quite long time ago I tried running it in windows 2000 server. I remember it had got me "division by zero" error ( or some thing similar)

Thank you all for your advice.

Faheem Hameed
 
Faheemi,

The divide by zero error that you got is related to the CPU speed and not the OS. There is a patch for that divide by zero error called DZPATCH. Search for it on the web and you'll find plenty of places to download it. It is used to patch to different files "Foxprow.exe" and "Foxw2600.esl" (or whatever the esl file is called for FP2.5) This will fix the problem and enable you to run your FP2.5 application without modification. There are certainly plenty of other problems that you can run into using these legacy applications but there are enough FP applications running on Windows 200 and Windows XP to rest assured that it is doable.

Slighthaze = NULL

[ul][li]FAQ184-2483
An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top