MakeShared
(Engine-Level Function)
Description: | Takes a variable and makes it shared. |
Returns: | Nothing |
Usage: | Script or steady state. |
Function Groups: | Compilation and On-Line Modifications, Variable |
Related to: | AddVariable | FindVariable | MakeNonPersistent | MakeNonShared | MakePersistent |
Format: | MakeShared(Variable) |
Parameters: |
Variable |
Required. 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. |