Jump to content
Tom Wellige

3.2 - Usage - Store a value

Recommended Posts

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 Welcome
Set Welcome   = new PersistentVariable
Welcome.Name  = "Welcome"
 
Welcome.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 Simple Script - Store Variable in the download package which includes the above code.
 

 

Index

<< Previous 3.1 - Usage - Create a persistent variable

>> Next 3.3 - Usage - Retrieve a value


 

Share this post


Link to post
Share on other sites

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