Jump to content
  • 3.2 - Store a value

    3.2 - Store a value



    As already mentioned using persistent variables is very straight forward, just like you use common VBScript variables.


    The only difference is, that the value you put into a persistent variable will automatically be store into the database.


    Dim MyVariable
    Set MyVariable   = new PersistentVariable
    MyVariable.Name  = "Welcome"
    MyVariable.Value = "Default Welcome.wav"


    The content you want to store into a persistent variable needs to be put into the Value property.


    You can put anything you want into the persistent variables, like strings, booleans, integers or dates. You only need to keep in mind that the maximum size is limited to 1kB (1024 bytes).


    With nothing else configured the above persistent variable will be visible/accessible for the current script user only (the User scope is the default scope). To configure another scope (Global or Namespace) you have to change the Scope property.


    You will find the 3.4 - Simple Script - Store Variable in the download package which includes the above code.



    Tom Wellige


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