Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check for Exclusive Open?
Message
De
13/01/2003 23:05:38
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00741115
Message ID:
00741276
Vues:
31
Yes, but if I try to open the table exclusive using an error handler that sets some flag and it is either not opened or in the case of use table in 0 exclusive again (where it may actually open but in shared mode), this will tell me that I cannot open the table exclusively. I don't really care if someone else has the table exclusively,shared or otherwise, or if it is being used in another data session, this should tell me that I cannot open it exclusively.

>>Nadya,
>>
>>You can use
>>
>>
?used("tablealias") and isexclusive("tablealias")
>>
>>to check for exclusive use.
>>
>
>Unfortunately, this doesn't work. The used and isexclusive functions check the current DS only. If the table opened in other DS or on another computer, we would not know. So, trapping for error is the only way to find out...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform