Jump to content
Gold Sponsor: Data-Way IT-Consulting, Austria

  • 5.2 - SCOPE_USER

    5.2 - SCOPE_USER

    VBScript

     

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

     

    Variables the user scope are visible/accessible for all scripts of the current script user.

     

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

     

    Dim MyVariable
    Set MyVariable   = new PersistentVariable
    MyVariable.Name  = "Welcome"
    MyVariable.Scope = SCOPE_USER

     

    As the User scope is the default scope you can shorten your code to:

     

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

     

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

     

    Another script of another user 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.