Jump to content
  • 5.1 - SCOPE_NAMESPACE

    5.1 - SCOPE_NAMESPACE

    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.

     

     


    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.