Jump to content
  • 4.4 - Scope

    4.4 - Scope



    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 MyVariable
    Set MyVariable   = new PersistentVariable
    MyVariable.Name  = "Welcome"
    MyVariable.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.



    Tom Wellige


  • 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.