Difference between revisions of "NameSpace global"
From Wiki
Line 8: | Line 8: | ||
=== Description === | === Description === | ||
''(Added in 1.39)'' The '''nameSpace''' local commands 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. | ''(Added in 1.39)'' The '''nameSpace''' local commands 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 [[Namespace local|local]] and named STD. This setting is restored when the script is stopped. | ||
''Note:'' | ''Note:'' |
Revision as of 00:17, 16 August 2005
nameSpace global
Namespace commands
Synopsis
nameSpace global {namespace name}
Description
(Added in 1.39) The nameSpace local commands 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: Currently only Local scope is available. Global scope is to be introduced in a future version of EasyUO.
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 clear | nameSpace local | nameSpace push | nameSpace pop | nameSpace copy | #nsType | #nsName |
Main_Page | Documentation |