Appendix: Built-in Scripting Language Returned value Examples SetRegValue Sets the value of a variable in the Windows registry. Syntax SetRegValue( numMainKey , strKey , strVariableName , numType , strOrNumValue ) numMainKey Numeric tag with the following possible values: strKey Path where the value is located in the Main Key. strVariableName Name of the variable to be set. The maximum length is 255 characters. numType Two types are currently supported: strOrNumValue Variable value.
Returned value Page 566 InduSoft Web Studio 0 Success 1 Error Tag Name Expression Tag SetKeyboardLanguage( "EN" ) Tag SetKeyboardLanguage( tagLanguage ) Function Group Execution Windows Embedded Thin Client SetRegValue System Info Synchronous Supported Supported Not supported 0 HKEY LOCAL MACHINE _ _ 1 HKEY CLASSES ROOT _ _ 2 HKEY CURRENT USER _ _ 3 HKEY USERS _ 4 HKEY CURRENT CONFIG _ _ 5 HKEY PERFORMANCE DATA _ _ 0 DWord 1 String 0 Success. −1 Invalid number of parameters or invalid Main Key. −2 Invalid type. −3 Failed to read the variable value; verify that you have the proper security rights.