Interesting. I see why you are doing what you are doing now.
>I am storing the path to the database in the registry and reading that when the application object is created. When I load a form I read the path in the load and scan the DE to set the path for all tables before calling DataEnvironment.OpenTables(). I do this so if I want to stor the DataBase on a server it is no hassle... Just wanting some validation on my thought process...
>
>Thanks for the reply
>
>>Usually, by the time my app has gotten to a form, the PATH issues have been addressed. I'm not a big fan of setting paths in more than one location for a single application.
>>
>>>From your post, I am assuming you have AutoOpenTables set to .F.. You could set it to .T., and set the path in the BeforeOpenTables method and then let VFP open the tables normally. This way VFP will handle all the table opens, index sets and relation creation defined in the DataEnvironment.
>>>
>>>Just a thought.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05