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 V 2.6 programs in Visual Foxpro V 8.0 2

Status
Not open for further replies.

greg22

Programmer
Jun 30, 2004
3
US
When I transfer my Foxpro Ver 2.6 programs and database files to ver 8.0 my screen commands in ver 2.6 don't work properly in ver 8.0. My "SAY" and "GET" commands don't line up properly on the screen. Example of how I wrote my screen commands in Foxpro Ver 2.6:
Set device to screen
@10, 10 say "stock number:"
@10, 23 get STOCK picture "xxxxxx"
Read
In Foxpro Ver 8.0 the "GET" command and "SAY" commands seem
to be much smaller and don't fill up my screen the same as
Ver 2.6. Is this something to do with FONT SIZE?? If so, how
would I write a GETFONT() command or do I need to rewrite all my old ver 2.6 programs to fit screen in Ver 8.0???
 
If your old app was written using Foxpro DOS, remember that it was only dealing with 80 columns X 25 rows. So if you now use @...SAY command, they are going to be interpreted as pixels.
To use your old code functionality, you may want to just use a FONT clause on your @...SAY/GET's:

Code:
       @10, 10 say "stock number:" [COLOR=blue]FONT "Foxfont", 12[/color]
       @10, 23 get STOCK picture "xxxxxx" [COLOR=blue]FONT "Foxfont", 12[/color]
       Read

or something similar.

-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Go through your FPD code and separate out the screen code from the program code, valid functions, when functions, etc.

Make them clearly separate "modules" of code.

Then, when you go into VFP8, you will be able to retain your "code" and replace the screen code with VFP Forms.

Good Luck,


JRB-Bldr
VisionQuest Consulting
Business Analyst & CIO Consulting Services
CIOServices@yahoo.com
 
Try
SET DISPLAY TO vga25 or vga50 at the begining of the app and should carry all the way through

If I remember correct I needed to do that way back when I converted stuff to VFP 3 from 2.6

Steve Bowman
steve.bowman@ultraex.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top