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!

SET RESOURCE TO command fails in VFP8 1

Status
Not open for further replies.

AndrewMozley

Programmer
Oct 15, 2005
623
GB
I have recently installed VFP8 on a new machine and copied to that machine a folder in which I have done most of my development.

In Tools | Options I have set the resource file to
c:\stage2\anmprint\foxuser.dbf

and this is the default. At the command prompt I can key in "SET RESOURCE TO c:\stage2\anmprint\foxuser.dbf" and that works fine.

If however I key in "SET RESOURCE TO", that fails with the message "Not a table". And yet Foxpro HELP tells me :

"Issue SET RESOURCE TO without a resource file name to open the default FoxUser.dbf resource file"

It used to work on the old machine. Any ideas?
 
It will work if "c:\stage2\anmprint" is your default folder, and is set in your startup program. In tools->options set it as your default folder as well, now it "Set resource to" will work from the command window as well...
It is also a good idea to set resource, after setting the default folder, in your startup program as well
 
Thank you Mike and "ImagineCorp". In fact the problem has gone away - not quite sure what I did.

I take your point about the foxuser.dbf files, MikeL! They breed like rabbits - there is one in many folders where I run Fox applications.

I have looked at the VFP Help, but it does not seem that these files are relevant to my applications. Are they important, or are they purely a source of errors?

Thanks again. Andrew
 
Andrew,

The Foxuser files are used to store various settings between sessions. For example, they contain: information about the size and position of the various system windows in the IDE; configuration of the latest Browse window; layout and content of the debugger windows; and so on.

If you delete the current Foxuser files, you will lose that information, but apart from that, there is no harm in deleting them. They are not usually required in a run-time system (unless you explicitly decide to use them to store your own information), and many developers choose to do without them at run time (which you do by adding RESOURCE=OFF to your Config.FPW file).

Hope this helps.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top