Solved

vfp queries point to relative directory

Posted on 2011-09-26
4
297 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 42

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 42

Accepted Solution

by:
pcelba earned 50 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

Technology Partners: 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…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

623 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