Information générale
Catégorie:
Codage, syntaxe et commandes
>>>Do you think this would be a good VFP8 ER?
>>>
>>>IsOpenExclusive() that would return True or False.
>>
>>I think the issue is whether it _can_ be opened exclusive, right? Not whether it is already open, somewhere, exclusive.
>>
>>I think a better choice is to either have a choice to not throw an error if EXCLUSIVE fails, or to have your function also use it exclusive if it can. Don't know if that was clear.
>>
>>Just getting a true from CanOpenExclusive() isn't good enough since it might get used between the function and the next line where you USE it.
>
>< slaps forehead > Yup, you are right. Does that still sound useful to implement?
I think so. Something like:
USE myTable TRYEXCLUSIVE
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement