Jump to content
  • 5.3 - SCOPE_GROUP

    5.3 - SCOPE_GROUP

    VBScript   1.4.0

     

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

     

    Variables with a scope seto to SCOPE_GROUP are visible/accessible for all scripts of the current script group.

     

    This is the default scope of every new persistent variable if being used within a call routing for a group. If the variable is used in a call routing for a user the default is SCOPE_USER. If being used outside of a call routing script (new in v1.1.0) the default is  SCOPE_GLOBAL.

     

    Dim Announcement
    Set Announcement   = new PersistentVariable
    Announcement.Name  = "Welcome"
    Announcement.Scope = SCOPE_GROUP

     

    If you use the persistent variable in a group call routing, the default scope is SCOPE_GROUP, so you an shorten your code to:

     

    Dim Announcement
    Set Announcement  = new PersistentVariable
    Announcement.Name = "Welcome"

     

    The above examples define a persistent variable Welcome in the Group scope. This variable is visible/accessible for all scripts of the same group.

     

    Another script of another group which defines also a persistent variable Welcome does not interfere.

     

     


    Tom Wellige
     Share


     Share




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