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!

What foxuser.* for? 1

Status
Not open for further replies.

paispatin

Technical User
Oct 21, 2003
62
A1
Anyone know what foxuser.* files for?

If I create an .exe application, and run it alone, the foxuser.* will be created at the same directory, can I stop the foxpro creating foxuser.*?

Thank you in advance.
 
paispatin,

These two files are known as resource files. They hold information about the state of the desktop and various VFP settings. That includes the position of windows on the screen, the layout of the last Browse window, whether your command window is docked, what toolbars are visible, and a lot more.

Generally, the information is only important in the development environment. The files are pretty irrelevant to the end user.

It is usually safe to delete these files from the user's system. However, if you delete them from your developement system, you will lose the settings mentioned above. That's not really a problem -- it just means that, when you next go into VFP, you will have to manually arrange the windows, etc. the way you like them.

By default, if the files don't exist, VFP will re-create them at startup. So, even if you delete them, they will come back. To get rid of them permanantly, put this line of code in your Config.FPW file:

RESOURCE = OFF

Hope this is clear.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Thank you very much Mike, now I understan about foxuser.* for.

Btw, I create a *.exe file from foxpro, but I can not find where to find config.fpw, where is it?

Can I user RESOURCE = OFF at the main.prg which is run fist before my form?

Thank you in advance.
 

Btw, I create a *.exe file from foxpro, but I can not find where to find config.fpw, where is it?

If it does exist, just create a text file and name it config.fpw and put it in the application directory. Or in you main program use :
SET RESOURCE ON|OFF


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Paispatin,

I create a *.exe file from foxpro, but I can not find where to find config.fpw, where is it?

It's just a text file that you can create with an ordinary text editor. If you haven't got one already, just create it, and place the single line RESOURCE = OFF in it. Name it CONFIG.FPW, and place it in the same directory as the EXE.

Can I user RESOURCE = OFF at the main.prg which is run fist before my form?

No. RESOURCE = OFF is a special syntax that only works in the Config.fpw. The equivalent command for the actual program would be SET RESOURCE OFF, but there's not much point in doing that because by the time you run your main program, the resource files will already have been created.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Yes, I got it, thank you for the help.
So, I have to create config.fpw first to make *.exe not create foxuser.*
Because if I create at main.prg, the foxuser.* still created.

Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top