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:
00741810
Views:
22
Hi,

>>Nice idea. One thing I was just thinking about was the multiuser aspect of
this code. If I open tables through OLEDB, I wonder what will happen if I have n simultaneous opens? DBSetProp is "very global" and I want to make sure what I do is only affecting the current single environment.
<<

True. There could be no quarantee that other instances wouldn't miss database events. How about (getting desperate here <s>!):
PROCEDURE dbc_AfterOpenTable(cTableName)
        IF TYPE("llTest")
          RETURN
        ENDIF
	Select (cTableName)
	Use
	Select 0
        PRIVATE llTest
	USE (cTableName) In 0 Shared
        RELE llTest
ENDPROC
But are you sure this couldn't be better handled outside DBC events anyway ?
Regards.
Viv
Previous
Reply
Map
View

Click here to load this message in the networking platform