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

Foxpro 2.6a problem on Windows XP

Status
Not open for further replies.

eddavis

Programmer
Nov 14, 2007
2
US
I have a Foxpro 2.6a application that I have been running successfully on Windows 98 since 1999.

I recently installed Windows XP, and now parts of my application do not work correctly.

When I run certain parts, I get an "Error 30".

I saw the other thread about this - "SBT FoxPro2.6a Error 30" in November 2006 - and tried changing my Windows display settings. However, for Windows XP, there doesn't appear to be a "Small Fonts" setting, only Normal, Large and Extra large.

The setting was already at Normal, so this didn't help.

On my Windows 98 system, the Screen Resolution was 800 by 600. My Windows XP system's screen resolution is 1280 by 1024. I tried setting the screen resolution down to 800 by 600 (I know wrong way, but I thought it was worth a try), but this did not help either.

Are there any other suggestions of things I can try?

Thank you!
 
Hi Eddavis,

We are running 2.6a recompiled in VFP6.0 on WinXP SP2. We occasionally run into this and its usually due to the default screen font is set larger than the fonts used in the various fields/controls on the screen.

Also can occur to drop down controls that are dynamically filled on the fly from a codes table with long descriptions, etc. When you click on the dropdown, they can go "off screen" and will cause the error.

We just set the default font to 1 or 2 points smaller than the smallest font size used on the screen.

John
 
That turned out to be the problem. We were using "Courier New" at various sizes for our displays and printing, but never below point size 12.

Since the code worked previously under Windows 98, I can only assume that Windows XP has a different default font that FoxPro uses, and/or the scaling of the fonts is a little different.

Anyway, at the beginning of the main program I did:

modify window screen font "Courier New", 12

to change the main FoxPro window font, and now it is working fine.

Thanks for the help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top