Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Distribution Problems
Message
From
14/05/1998 20:50:03
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00098844
Message ID:
00099634
Views:
29
Hi Michael,
Well, I just checked and if you
<B>
wait window thisform.dataenvironment.cursor1.cursorsource
</B>
in your forms load event (assuming you have a DE and a cursor1 :-))
you will see a FULL path.
I just change it (.cursorsource) to whatever and then do a .Dataenvironment.OpenTables() in the load event.

I run VFP apps always on the local (client) machine and the data is on the server, so the live enviroment is almost never like my development environment, which means the paths in the DE are always wrong !


>Hey, David!
>How do you access the path to the tables in the data environment programmatically? I thought VFP keeps a RELATIVE path to the data (as long as the data is within the same directory tree)??
>
>>Hi Ian,
>>In addition to what others have said, you will find that the full path to the data in any Form.DataEnvironment during development is used in your distributable. I have modified my base form class to reset all data paths in the DE. (I use the ForcePath() function in Foxtools during this process)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform