Method: Item for ContextParameters
- Updated2024-09-12
- 1 minute(s) read
DIAdem NAVIGATOR > Methods > Method: Item for ContextParameters
Method: Item for ContextParameters
Returns the ContextParameter object associated with a specific name or with a specific index.
Set oContextParameter = Object.Item(NameOrIndex)
| Object | ContextParameters Object with this method |
| NameOrIndex | Variant Specifies the name or the index of the context parameter. |
| oContextParameter | ContextParameter Returned object |
The following example generates a set with two context parameters and displays the name of the second context parameter:
| VBScript | Python |
Dim oMyDataStore Set oMyDataStore = Navigator.ConnectDataStore("MyASAMServer") 'Generating parameter set Dim oMyParameterSet Set oMyParameterSet = Navigator.Settings.CreateContextParameterSet oMyParameterSet.Name = "MyParameterSet" 'Generating parameters and writing parameters into parameter set Dim OMyParameters Set oMyParameters = oMyParameterSet.Parameters Call oMyParameters.Add("DoubleParameter",1.2345,DataTypeFloat64) Call oMyParameters.Add("StringParameter","Parameter",DataTypeString) 'Displaying second parameter name Call MsgBoxDisp(oMyParameters.Item(2).Name)