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:
00741474
Vues:
23
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform