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

Conversion Problem 1

Status
Not open for further replies.

hydrant

Programmer
Sep 12, 2002
3
US
I have an old program that was written in Foxpro 2.0 at 25x80 resulation (DOS) that I would like to run in Visual FoxPro 5.0 I am using Windows 98SE with a screen resulation of 600x800. The problem I have is the program runs fine and everything works fine with the exception that it runs in the upper left side of the screen and doesen't fill the whole screen. I thought by building an executable that that would work and it does with the same exception . If possible I would rather not rewrite the whole program as I'm just learning to use Visual Foxpro 5.0 and am not all that firmilure with the programing language yet. Any help or suggestions would be greatly appreciate.

Hydrant
 
To fill full screen, try (left) Alt+Enter..
Tesar
 
Since the code was written for 80x25 characters, and obviously screen resolutions can handle a lot more characters than that now.
You will either have to create a form roughly the size to hold your current app the way it is and have it autocenter, or you will have to go through the app and change the layout of all the screen elements to reposition them on the larger screen area. That is, if you want to continue to run the code without a total conversion to the visual format.
Dave S.
 
HI Hydrant,

In the beginning of your code.. of your main.prg.. add the code..

_screen.FontName = 'fixedsys'
_screen.FontSize = 10

This shall fix your problem. However, if you find any size problem.. suitably set the font and its size.. so that you can see the result and adjust. In DOS, your screen size is 640x480. Remember you set that size if you want the same way.. and not in 800x600 or other sizes. Hmmm.. a little backward.. Isn't it :-(
ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
To Teaser

Thanks for yout suggestion but it didn't work for me.

Hydrant

ToDSummZZZ

Thanks for your suggestion but it would be a lot of work for a biggner programer in Visual Foxpro 5.0

Hydrant

To Ramani

Bingo your suggestion works great and solved my problem. Thank you very much.

Hydrant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top