Jump to content
  • Properties

    Properties


    8 pages in this category

    1. 4.1 - Name

      VBScript   This property defines the name of the persitent variable. The name is used to access/identify the persistent variable.   Depending on the used Scope the name can be already sufficient (SCOPE_USER or SCOPE_GLOBAL) or the Namespace property (SCOPE_NAMESPACE) must be given to uniquely identity the variable.   The given name may contain any character. It has a maximum length of 50 characters. Longer names will be truncated.   Dim MyVariable Set MyVar
      • 143 views
    2. 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" MyVariab
      • 117 views
    3. 4.3 - Default

      VBScript   This property defines the default value of a persistent variable.   When reading the content of a persistent variable it is possible that the variable has not been set before. In this case the configured default value will be returned.   The default 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 MyVari
      • 100 views
    4. 4.4 - Scope

      VBScript   This property sets the scope, i.e. the visibility, of a persistent variable. It takes a numerical value from 1 - 3. Any other values will be ignored.   If you omit this property the default scope is used, which is the user scope. in case you use the persistent variables with a call routing script. If you use them outside of a call routing script (new in v1.1.0) the default scope is the global scope.   For convenience purpose there are three VBScript cons
      • 110 views
    5. 4.5 - Namespace

      VBScript   This property set the name of a namespace if the Scope if the persistent variable is set to SCOPE_NAMESPACE.   The given name may contain any characters. It has a maximum length of 128 characters. Longer strings will be truncated.   Dim MyVariable Set MyVariable = new PersistentVariable MyVariable.Name = "Welcome" MyVariable.Scope = SCOPE_NAMESPACE MyVariable.Namespace = "Support"   The above example defines a persistent variable Wel
      • 167 views
    6. 4.6 - UserID

      VBScript   1.1.0   The usual way of working with persistent variables is most likely from within a call routing script. From v1.1.0 the persistent variables can also be used outside of a call routing script, i.e. in a standard windows scripting file (.wsf) or an asp web page.   In these cases the persistent variables switch their default Scope from User to Global to reflect the fact, that they don't have access to a SwyxWare user id, and therefore can't use the User Scope
      • 256 views
    7. 4.7 - LatestError

      VBScript   This property returns a Windows Error Code (numerical) of the last read/write access of the persistent variable. The Windows Error Text can be found in LatestDescription.   A list of all possible error codes and their meaning can be found in the MSDN (Microsoft Developer Network):   System Error Codes      This property is read only.   As persistent variables are stored into a database there is a possibility of runtime errors. To ch
      • 101 views
    8. 4.8 - LatestDescription

      VBScript   This property returns a Windows Error Text (string) of the last read/write access of the persistent variable. The Windows Error Code (numerical) can be found in LatestError.   This property is read only.   As persistent variables are stored into a database there is a possibility of runtime errors. To check for any such runtime errors during read or write access of a persistent variable you can check LatestError for not equal zero.   If you have
      • 105 views
×
×
  • 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.