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 MyVariable Set MyVariable = new PersistentVariable MyVariable.Name = "Welcome" MyVariable.Value = "Default Welcome.wav" PlaySound MyVariable.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.:
(Please note: in this screenshot the name of VBScript variable is "Welcome", while in the above code snippet it is "MyVariable". This is just because it was renamed after taking the screenshot. It has no functionaly reason.)>