Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET PATH query
Message
From
18/04/2012 10:05:32
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SET PATH query
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01541961
Message ID:
01541961
Views:
74
I am having a "blind" moment:

On my local development pc I have a folder C:\MYDATA\DBFS

I am running a query which utilises tables from this folder e.g. invent.dbf

I am setting the search path as follows:
SET PATH TO C:\MYDATA\DBFS\

When I run the query and inspect the debugger, I can see the path is set correctly to C:\MYDATA\DBFS and the dbf() returns C:\mydata\dbfs\invent.dbf

I now set

SET PATH TO S:\MYDATA\DBFS\

to run the query against a server data set.

Now when I inspect the debugger I can again see the path is correctly changed to S:\MYDATA\DBFS\, but the dbf() still returns C:\mydata\dbfs\invent.dbf instead of what I was intending i.e. S:\mydata\dbfs\invent.dbf.

Why is the dbf on the S path not being picked up?

Barry Sutton
Next
Reply
Map
View

Click here to load this message in the networking platform