SetGlobalParameter
Sets a value of global parameter.
Compatibility
Available as of IDEA version 12.0
Syntax
SetGlobalParameter(paramName As String, paramValue As Object, paramLocation As Integer, optionalData As String)
Parameters
paramName
Extended parameter name
paramValue
Extended parameter value. Can be one of the following types: Integer, String, Float, Date, Period, Object
paramLocation
Location of the parameter (Machine = 0, Workflow = 1, File = 2, Folder = 3, Project = 4)
optionalData
Ignored for Machine and Project location;
Workflow id for Workflow;
File/folder path for File/Folder location;
Remarks
If the parameter specified by paramName does not exist, SetGlobalParameters() command will create it.
If the parameter specified by paramName already exists, SetGlobalParameters() command will overwrite its value with a new one.
Example
Sub Main()
Dim ac As Object
Dim value As String
Set ac = CreateObject("SmartAnalyzer.AutomationClient")
ac.SetGlobalParameter("IntValue", 100, 3, "2015_0603")
Set value = ac.GetGlobalParameter("IntValue", 3, "2015_0603", False)
...
End Sub