-
5 pages in this category
-
3.1 - Create a persistent variable
VBScript To be able to use persistent variables you need to add one Run GSE Action block into your script, calling the PersistentVariable action. It is recommended to place this block right after the Start block. If you have installed the Persistent Variables extension as recommended you don't need to set any of the properties of the GSE action. Otherwise you should refer to:6.3 - Use SQL Server on different machine, 6.4 - Use databa - 314 views
-
3.2 - Store a value
VBScript 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 - 234 views
-
3.3 - Retrieve a value
VBScript Retrieving a persistent variable like storing it very straight forward, just like common VBScript variables. The only difference is, that the value you read from the variable will be taken from the database in that moment. Dim MyVariable Set MyVariable = new PersistentVariable MyVariable.Name = "Welcome" MyVariable.Default = "Beep.wav" PlaySound MyVariable.Value Before you read the content from the persistent variable you should defi - 168 views
-
3.4 - Simple Script - Store Variable
VBScript Within the download package of this project you will find an rse folder. This folder includes the file Store.rse. This is a small example script to demonstrate the usage of persistent variables. It shows how to store a value persistently into the scope of the current user. The script creates a variable called Welcome for the current script user (Default Scope: User) and stores the name of a SwyxWare default announcement into it. - 419 views
-
3.5 - Simple Script - Retrieve Variable
VBScript Within the download package of this project you will find an rse folder. This folder includes the file Retrieve.rse. This is a small example script to demonstrate the usage of persistent variables. It shows how to retrieve a persistently stored value from the scope of the current user. The script reads a persistent variable called Welcome and uses a Play Announcement block to announce the current value (which should be - 161 views
-