Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Force Shared Open in DBC Event?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00741206
Message ID:
00741474
Views:
22
Hi Steve.

>I am looking for a good way to open a table from within the DBC event " dbc_AfterOpenTable". Regardless of the environment setting, I want to set the table to open shared. Doing this exceeds the DO nesting level:
>
>PROCEDURE dbc_AfterOpenTable(cTableName)
>	Select (cTableName)
>	Use
>	Select 0
>	USE (cTableName) In 0 Shared
>ENDPROC
>
How about using SET EXCLUSIVE OFF in DBC_BeforeOpenTable? You could reset the former setting in DBC_AfterOpenTable (you'd have to store the current setting in a global place, such as a global variable or property of a global object such as _SCREEN).

Doug
Previous
Reply
Map
View

Click here to load this message in the networking platform