Difference between revisions of "NameSpace global"

From Wiki
Jump to: navigation, search
(Description: Applying template to notes)
(Applying templates (header, body, footer))
Line 1: Line 1:
__NOTOC__
+
{{command header|Namespace Commands}}
== nameSpace global ==
+
'''Namespace commands'''
+
  
=== Synopsis ===
+
{{body|nameSpace global {namespace name} |''(Added in 1.39)'' The '''[[Documentation#Namespace|Namespace]]''' local commands defines the current [[Documentation#Namespace|Namespace]] name and scope. The {namespace name} must be a valid EasyUO name. The scope is global. A Global [[Documentation#Namespace|Namespace]] can be accessed by any script running within the same EasyUO instance.
'''nameSpace''' global {namespace name}  
+
  
=== Description ===
+
The default [[Documentation#Namespace|Namespace]] is [[Documentation#Namespace local|local]] and named STD. This setting is restored when the script is stopped.}}
''(Added in 1.39)'' The '''[[Documentation#Namespace|Namespace]]''' local commands defines the current [[Documentation#Namespace|Namespace]] name and scope. The {namespace name} must be a valid EasyUO name. The scope is global. A Global [[Documentation#Namespace|Namespace]] can be accessed by any script running within the same EasyUO instance.
+
 
+
The default [[Documentation#Namespace|Namespace]] is [[Documentation#Namespace local|local]] and named STD. This setting is restored when the script is stopped.
+
  
  
Line 42: Line 36:
 
</pre>
 
</pre>
  
=== See Also ===
+
{{footer}}
{|
+
| Width=200px | [[nameSpace clear]] || Width=200px | [[nameSpace local]] || Width=200px | [[nameSpace push]] || Width=200px | [[nameSpace pop]] || Width=200px | [[nameSpace copy]] || Width=200px | [[Var nsType|#nsType]] || Width=200px | [[Var nsName|#nsName]]
+
|}
+
----
+
{|
+
| Width=200px | [[Main_Page]] || Width=200px | [[Documentation]] || Width=200px |
+
[[Documentation#Namespace|Namespace]]
+
|}
+

Revision as of 03:34, 26 September 2005


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

Main Page Documentation