Jump to content
Gold Sponsor: Data-Way IT-Consulting, Austria

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

     

    pv9.png

     

    (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.)>

     

     


    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.