>Hi! I'm having real problems with my dataenviroment in my forms.
>
>Can anyone recommend is it better to autoopen files and autoclose files?
>
>I'm using optimistic buffering my tables using an edit button to write my buffers.
Robin,
It depends on your processing. I have in my LOAD of a parent form class a call to set the data path correctly for the current data I am using. I couldn’t do this with AutoOpen = TRUE. However, I do have AutoClose = TRUE. I also use Optimistic table buffering.
If your tables are part of a database, you may want to open the database shared in the forms BeforeOpenTables method, when it is a Private DataSession. Then you would not need to set your data folders before the AutoOpen
I’ve built a small builder with the ASELOBJ function, to access the DataEnvironment and set AutoOpen = FALSE. Now that you brought this up, I think I’m going add an ASSERT in my base form class to notify me when I forgot to set that setting.
Tracy
Tracy