Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can Only One DBF Default to Open Shared?
Message
De
27/11/2013 12:51:32
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01588754
Message ID:
01588770
Vues:
50
>Is it possible to have one particular DBF default to open Shared, but have all of the others default to opening Exclusive? In other words, if I forget to type "SHARED" after
>USE ThisDBF.DBF
>
>it would still open Shared, but all of my other DBF's would open Exclsuive if I type
>USE OtherDBF.DBF
>
>without typing "EXCLUSIVE"?
>

If it's in a DBC, you might be able to do something with the BeforeOpenTable and AfterOpenTable events. Maybe SET EXCL OFF in Before... and ON in After... You'll have to check that it's the table you're interested in.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform