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)