Appendix: Built-in Scripting Language Examples GetRegValue Gets a the value of a variable in the Windows registry. Syntax GetRegValue( numMainKey , strKey , strValueName ) 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 get. The maximum length is 255 characters. Returned value If the function succeeds, then the function returns the variable value. Otherwise one of the following error codes will be returned: Examples GetRegValueType Gets the data type of the value of a variable in the Windows registry.
Syntax GetRegValueType( numMainKey , strKey , strValueName ) InduSoft Web Studio Page 557 Tag Name Expression Tag GetProductPath() // Returned value = "C:\Program Files\InduSoft Web Studio v7.0\" Function Group Execution Windows Embedded Thin Client GetRegValue 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 _ _ −1 Invalid number of parameters or invalid Main Key. −2 Variable type is not supported. You can only read DWord or String values from the registry. −3 Failed to read the variable value; verify that you have the proper security rights.
Tag Name Expression Tag GetRegValue( 0, "HARDWARE\DESCRIPTION\System", "SystemBiosDate" ) // Returned value = "08/14/03" Tag GetRegValue( 2, "Control Panel\Current", "Color Schemes" ) // Returned value = "Windows Standard " Function Group Execution Windows Embedded Thin Client GetRegValueTy peSystem Info Synchronous Supported Supported Not supported