Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
So Confused about the USE statement
Message
 
 
À
11/08/2000 11:58:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00403974
Message ID:
00404030
Vues:
50
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
Fil
Voir

Click here to load this message in the networking platform