Jump to content
Tom Wellige

5.1 - Scopes - SCOPE_NAMESPACE

Recommended Posts

This is a VBScript constant defined to the value of 1. This constant will be used to set the Scope of a persistent variable to the namespace scope.

 

Variables in the namespace scope are visible/accessible for all user's scripts defining the same Namespace name.

Dim Welcome
Set Welcome       = new PersistentVariable
Welcome.Name      = "Welcome"
Welcome.Scope     = SCOPE_NAMESPACE
Weclome.Namespace = "Support"

 

The above example defines a persistent variable Welcome in the namespace Support. All scripts defining the same namesapce will be able to access this variable.

 

Another persistent variable Welcome in a namespace Sales will not interfere.

 

Other available scopes:

 

 

Index

<< Previous 4.8 - Properties - LatestDescription

>> Next 5.2 - Scopes - SCOPE_USER


 

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.