Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Force Shared Open in DBC Event?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00741206
Message ID:
00741810
Vues:
23
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform