Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data environment startup
Message
From
06/12/2002 12:33:18
 
 
To
06/12/2002 11:35:21
Randy Riegel
Zimish Contracting
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00730363
Message ID:
00730392
Views:
17
This message has been marked as the solution to the initial question of the thread.
Hi Randy.

>I'm would like to be able to control whether or not the tables in my dataenvironment are read only or not at form startup. I know I can't do this by passing parameters to the form since the dataenvironment is loaded before the Init of the form.

Try setting DataEnvironment.AutoOpenTables to .F. so it doesn't automatically open the tables. Have Init accept a parameter (like tlReadOnly), go through the Cursor objects in This.DataEnvironment and set their ReadOnly properties appropriately. Finally, call This.DataEnvironment.OpenTables to open the tables.

Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform