Function SetEnvironmentVariable(String name, String value)
This function set the value of the environment variable "name" to the value "value". This function can be used to change current license key or store secure data using License System 2 Environment Variables.
Parameters
name
[in] The name of environment variable where the value is to be stored
value
[in] The value to be stored
Return Values
This function returns an integer, 1 = success, 0 = failure
Example:
Dim new_license_key
new_license_key = InputBox("Please Enter a License Key")
if (SetEnvironmentVariable("TS_CURRENT_KEY", new_license_key)==1)
msgbox "The current license key has been set"
else
msgbox "The key you entered is invalid"
endif