Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Session object data
Message
From
22/06/1999 16:30:06
 
 
To
22/06/1999 01:14:23
Eric Barnett
Barnett Solutions Group, Inc
Sonoma, California, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00231653
Message ID:
00232711
Views:
18
Outside of the Data Environment object of the Form Designer, the AutoOpenTables, AutoCloseTables, and OpenViews properties can only be set at the class definition level in a .prg :

DEFINE CLASS NewDataEnvironment AS DataEnvironment

AutoOpenTables = .F.
AutoCloseTables = .T.
OpenViews = 0

After loading cursors into a BizObject's empty DataEnvironment, OpenTables has to be called explicitly even if AutoOpenTables = .T. This is because the DataEnvironment had no cursors to begin with.

If BizObjects are kept separate from forms, then you can use form classes (with no DataEnvironments) and then just set the forms' DataSessionID to that of a BizObject.


>I think that AutoOpenTables is probably only hooked in to the event model for forms. So it would make sense that you would have to call OpenTables explicitly.
- Jeff
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform