MakeShared

Description:              This statement takes a variable and makes it shared.

Returns:                    Nothing

Usage:                       Script or Steady State

Format:                      MakeShared(Variable)

Parameters:             Variable   { Variable }  { required }  { no default }

                                      Any expression for the variable value. This value is typically returned from a FindVariable or an AddVariable call.

Comments:               There will only be one instance of the variable's value so anywhere the variable is set it will set it for all uses. Care must be exercised that by making a variable shared you do not create a "double set" on the variable (i.e. setting it in two different statements at the same time). If you do the result will be that the variable will become invalid. For more information on double sets see the "Variable" section in Chapter 3.

                             If Variable is a module value, it will be unaffected.

See Also:

AddVariable | FindVariable | MakeNonPersistent | MakeNonShared | MakePersistent