Jump to content
Tom Wellige

4.2 - Properties - Value

Recommended Posts

This property represents the value (i.e. the content) of the persistent variable.


While accessing this property the content will be either automatically written into the database or retrieved from the database.


The value takes up to 1kB (1024 Byte) of any data, like strings, booleans, numbers or dates. Data above the 1kB limit will be truncated.

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


The above example defines a persistent variable Welcome in the user Scope of the current user.


Line 5 shows how to write into the persistent variable. The new content will be directly written into the database and is therefore persistently available.


Line 7 shows how to read from the persistent variable. The content will be directly retrieved from the database. Of course it is possible to use the content of the persistent variable directly in nearly any GSE block, e.g.:





<< Previous 4.1 - Properties - Name

>> Next 4.3 - Properties - Default


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.