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