Jump to content

- Scopes

- # Persistent Variables - 5.1 - SCOPE_NAMESPACE

  Followers 0

  VBScript

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

  By Tom Wellige

  - May 14, 2022
  Share
  Share
  Followers 0
  Next Page 5.2 - SCOPE_USER

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