Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding to the data environment programmatically
Message
From
11/04/2016 23:39:32
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Adding to the data environment programmatically
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01634683
Message ID:
01634683
Views:
62
Is there a way to, at the beginning of a form, to add the data files to the data environment programmatically, or set a path for the DE to use before opening files? The problem I am having is that locally, or over the LAN, an app works just fine, and opens the files it needs using path strings, which change quite regularly, for example:
thislanfile=&mlanpath+'abc.dbf'
USE "&thislanfile" IN 0
That works great, but when a user RDP's in, it doesn't work. Using messagebox, I can see that the machine/folder/dbf is correct, but I get error 1 in the 'use' line. Any help will be much apperciated!

Thanks.
Next
Reply
Map
View

Click here to load this message in the networking platform