Jump to content

- Properties & Methods

- # Persistent Variables - 4.5 - Namespace

  Followers 0

  VBScript

  This property set the name of a namespace if the Scope if the persistent variable is set to SCOPE_NAMESPACE.

  The given name may contain any characters. It has a maximum length of 128 characters. Longer strings will be truncated.

      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 (regardless on which user or group they are running) will be able to access this variable.

  Another persistent variable Welcome in a namespace Sales would not interfere.

  By Tom Wellige

  - May 14, 2022
  Share
  Share
  Followers 0
  Previous Page 4.4 - Scope
  Next Page 4.6 - UserID

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