>what do i do wrong? does vfp's view remember its environment
>when it is created?
Hello Thongchai,
Yes indeed. Visual FoxPro stores the entire path then it tries to evaluate this path as a relative path. If it can find the data at the full path location, it will get the data from there; if it can't it will turn to the relative path; if it still can't, it will raise an error.
If you want VFP to go straight to the data path you have specified, than you need to work at the Init() event of the cursor itself and change the cursor source property to the exact location. Of course, you need to turn off the AutoOpenTables (.F.) and at the Init event() of the DataEnvironment you need to call the OpenTables() method.
I hope, it's going to help you.
Pat