Jump to content
  • 4.2 - Value

    4.2 - Value

    VBScript

     

    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 Announcement
    Set Announcement   = new PersistentVariable
    Announcement.Name  = "Welcome"
    
    Announcement.Value = "Default Welcome.wav"
     
    PlaySound Announcement.Value

     

    The above example defines a persistent variable with the name Welcome in the user scope of the current script user or in the group scrope of the current script group.

     

    The next line shows how to write into the persistent variable. The new content will be directly written into the database and is therefore persistently/permanently available.

     

    The next line 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.:

     

    image.png

     

     

     

     


    Tom Wellige
     Share


     Share




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