Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

vfp queries point to relative directory

Posted on 2011-09-26
4
Medium Priority
?
308 Views
Last Modified: 2012-08-13
Hi :
An irritating little feature of foxpro. I have two copies; one at work and one at home.
At Home when I create a query, then select a  query destination using the browse button, then view the SQL the table location is shown as relative; eg if I want to store  table stock.dbf  in C:\Stock then the SQL reads  "..\..\stock.dbf". Which, when I compile, does cause problems .
At work no problem - the SQL reads "C:\Stock\stock.dbf"
Anybody else experienced this?
0
Comment
Question by:ClaytonGlass
  • 2
  • 2
4 Comments
 
LVL 43

Expert Comment

by:pcelba
ID: 36598842
This should depend on the current path set by SET DEFAULT. Your work path is porbably D:\MyWorkFolder\ wherease home default path is e.g. C:\Stock\Home\MyHomeFolder\.

0
 

Author Comment

by:ClaytonGlass
ID: 36598986
Ahhh..Thank you, pcelba!
Please advise where SET DEFAULT is set...cannot see in config.fpw, and cannot find in tools/options
0
 
LVL 43

Accepted Solution

by:
pcelba earned 200 total points
ID: 36599037
Tools - Options - File Locations - Default Directory

But I would recommend to add it into CONFIG.FPW and/or into a startup program.
0
 

Author Closing Comment

by:ClaytonGlass
ID: 36599071
Excellent as usual...sorry if I am making you busy today!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
There can be many situations demanding the conversion of Outlook OST files to PST format and as such, there is no shortage of automated tools to perform this conversion. However, what makes Stellar OST to PST converter stand above the rest? Let us e…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question