Difference between revisions of "NameSpace global"
From Wiki
(replaced 'local' with 'global') |
|||
Line 35: | Line 35: | ||
</pre> | </pre> | ||
− | {{ | + | =See Also= |
+ | {{Namespace}} |
Revision as of 12:25, 13 September 2007
Synopsis
nameSpace global {namespace name}
Description
(Added in 1.39) The Namespace global command defines the current Namespace name and scope. The {namespace name} must be a valid EasyUO name. The scope is global. A Global Namespace can be accessed by any script running within the same EasyUO instance.
The default Namespace is local and named STD. This setting is restored when the script is stopped.
Note: | Global namespaces are only available in EasyUO 1.5. |
Example
namespace local ns1 set !test test1 namespace local ns2 set !test test2 namespace local ns3 set !test test3 namespace local ns1 display ok !test namespace local ns2 display ok !test namespace clear ns2 namespace local ns2 display ok !test namespace local ns3 display ok !test halt
See Also
Namespace
- Commands to interact with namespaces and their related variables.
nameSpace local | Defines the current namespace and its scope |
nameSpace global | Defines the current namespace and its scope |
nameSpace clear | Clears every variables within the current namespace |
nameSpace push | Stores the current namespace name and scope |
nameSpace pop | Restores the current namespace name and scope |
nameSpace copy | Copy variables from one namespace to another |