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

Foxpro Window Default

Status
Not open for further replies.

taz75

Programmer
Apr 17, 2001
15
GB
I am sure that there will be a very easy answer to this question but ....

How do I fix my Command Window and Data Session when I open FoxPro?

My colleague has re-installed his FoxPro and his boxes now open where he left them last time. I know that I could re-install my version, but I would like to find out as you must be able to do it.

I would appreciate anyone's help as this has been bugging me for some time. [Sad I know]

Help me.
 
These settings are controlled by your resource file (FOXUSER.DDF). I'd first check if your CONFIG.FP(W) has a RESOURCE=OFF line.

Next check to make sure FOXUSER.DBF isn't marked Read-Only by checking the Explorer Properties.

You could also:
SET RESOURCE OFF
USE sys(2005)
SET FILTER TO readonly
BROWSE

And make sure make sure these records (if any) don't refer to the command window, etc.

After making any necessary changes, finish up with:
USE
SET RESOURCE ON

Then restart FoxPro.

Rick
 
In a manner similar to what Rick (rgbean) has described above, I have often manually restored my FOXUSER.DBF table to its "virgin" state.

After executing:
SET RESOURCE OFF
USE FOXUSER IN 0 EXCLUSIVE
BROWSE

I lookoed over the records and Deleted all records relating to transitory screens/windows, etc. such as:
WINDMODIFY
SCREENPOS
REPORTPOS
etc.
where there is a value within the Name field. Those records with no Name are the Default records. These should be left alone but check them to be certain that the Readonly field is set to False.

Once I had completed the necessary Deletes, I then performed a PACK.

One thing to keep in mind. BEFORE doing this, if you are at all uncertain, make a copy of your original FOXUSER.DBF and FOXUSER.FPT files PRIOR to making any changes. It never hurts to have a safety net.

One you have made your changes, Quit Foxpro. Then upon re-starting Foxpro you should be running with "virgin" settings.

Good Luck,
jrbbldr
jrbbldr@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top