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!

using Foxpro ver2.6 programs in Visual Foxpro 8.0 3

Status
Not open for further replies.

greg22

Programmer
Jun 30, 2004
3
US
Hello
I wrote programs in foxpro ver2.6(dos based).I bought the newer version of Visual Foxpro Ver8.0. I want to use my programs from ver2.6 into Visual Foxpro 8.0 and they work, but my only problem is that all my "screen" @commands don't work properly in Visual 8.0 with my ver2.6 programs! If I continue to use my Foxpro ver2.6 everything looks Ok on our computer screens but in Visual 8.0 all the letters are much smaller and off center, but the actual programs still work! How do I correct this problem with my ver2.6 programs working properly in Visual Foxpro 8.0 on computer screen? I don't want to have to rewrite all my ver2.6 files to show up correctly on ver 8.0.
gregg22
 
Reading your message I assume you do not use foxpro 2.6 screens.
If you do you can perform a functional or visual migration to VFP8.
The results will not be great but acceptable.

If you wrote your own screens then you'll have to rewrite in VFP8.

Rob.
 
If you analyze your over-all application, you have screen code and program code which operates "behind the scene" or in the absence of a screen.

In general, the screen code is a small percentage of the over-all code in most applications.

Your older FP program code will continue to operate fine in VFP8. It is the small percentage of screen code which will need to be changed.

Unfortunately most people who have programmed application screens with the old, hardcode @Row, Column method many times have pretty extensively interlaced program code with screen code.

If your program code is thoroughly interlaced, then I would recommend the first step be to work within your FP code towards distinctly separating the screen code and program code so as to make the conversion easier.

If not and your screen code and program code is well differentiated into separately "encapsulated" FUNCTIONS and/or PROCEDURES, then your task will be somewhat easier.

Good Luck,


JRB-Bldr
VisionQuest Consulting
Business Analyst & CIO Consulting Services
CIOServices@yahoo.com
 
Might it not be possible that greg22 can fix his problem by changing the screen font?
What he describes might be a result of having a proportionally-spaced font in which case

_screen.fontname="FoxFont"
_screen.fontsize=9 &&Only because my font picker shows 9 & 11 as options.

would fix it.

Or:

Trying to downgrade to 2.6 for Windows would at least get you into the Windows world whilst hopefully working well with 2.6 code
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top