Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Dataenviroment
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00835394
Message ID:
00835522
Views:
10
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform