General information
Category:
Forms & Form designer
John,
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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only