General information
Category:
Coding, syntax & commands
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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only