Information générale
Catégorie:
Codage, syntaxe et commandes
I do not understand why you would use SHARED? If someone has EXCLUSIVE set, then they need the files EXCLUSIVE. What would be an example of needing the SHARED?
Brenda
>I always thought that EXCLUSIVE meant exclusive
You are correct, exclusive is exclusive.
>But then the SHARED says that it can also USE a table that was opened
>EXCLUSIVE.
>EXCLUSIVE
>Opens a table for exclusive use on a network. For more information on the
>exclusive use of tables, see SET EXCLUSIVE.
>SHARED
>Opens a table for shared use on a network. SHARED allows you to open a table
>for shared use even when EXCLUSIVE is set ON.
That means that the SHARED or EXCLUSIVE clause of the USE command overrides the current SET EXCLUSIVE ON|OFF setting.
e.g.
SET EXCLUSIVE OFF
USE table EXCLUSIVE
? ISEXCLUSIVE() && .T.
USE
SET EXCLUSIVE ON
USE table SHARED
? ISEXCLUSIVE() && .F.
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