Difference between revisions of "NameSpace clear"
From Wiki
Line 34: | Line 34: | ||
=== See Also === | === See Also === | ||
{| | {| | ||
− | | Width=200px | [[nameSpace local]] || Width=200px | [[nameSpace global]] || Width=200px | [[nameSpace push]] || Width=200px | [[nameSpace pop]] || Width=200px | [[nameSpace copy]] || Width=200px | [[ | + | | Width=200px | [[nameSpace local]] || Width=200px | [[nameSpace global]] || 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 | | | Width=200px | [[Main_Page]] || Width=200px | [[Documentation]] || Width=200px | | ||
− | [[Documentation# | + | [[Documentation#Namespace|Namespace]] |
|} | |} |
Revision as of 23:57, 15 August 2005
nameSpace clear
Namespace commands
Synopsis
nameSpace clear
Description
(Added in 1.39) The nameSpace clear command clears every variables within the current namespace. 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
set !return ; make sure !return is empty gosub test display ok !return halt sub test nameSpace Push ; saves current namespace nameSpace Local Test ; create a new temporary namespace to work with set !return this_is_a_test nameSpace Pop ; restore previous namespace nameSpace Copy ret* From Local Test ; copy variables to the original namespace nameSpace Push ; saves current namespace nameSpace Local Test nameSpace Clear ; free memory used by temporary namespace nameSpace Pop ; restore previous namespace return
See Also
nameSpace local | nameSpace global | nameSpace push | nameSpace pop | nameSpace copy | #nsType | #nsName |
Main_Page | Documentation |