Jump to content
Tom Wellige

4.4 - Properties - Scope

Recommended Posts

This property sets the scope, i.e. the visibility, of a persistent variable. It takes a numerical value from 1 - 3. Any other values will be ignored.

 

If you omit this property the default scope is used, which is the user scope. in case you use the persistent variables with a call routing script. If you use them outside of a call routing script (new in v1.1.0) the default scope is the global scope.

 

For convenience purpose there are three VBScript constants defined for the three available scopes: SCOPE_NAMESPACE (1), SCOPE_USER (2 - default) or SCOPE_GLOBAL (3).

Dim Welcome
Set Welcome   = new PersistentVariable
Welcome.Name  = "Welcome"
Welcome.Scope = SCOPE_GLOBAL

 

The above example set the scope of the persistent variable Welcome to global, meaning that this variable is visible and accessible from all scripts of all users.
 

 

Index

<< Previous 4.3 - Properties - Default

>> Next 4.5 - Properties - Namespace


 

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.