Property: Parameters for ContextParameterSet
- Updated2024-09-12
- 1 minute(s) read
DIAdem NAVIGATOR > Properties > Property: Parameters for ContextParameterSet
Property: Parameters for ContextParameterSet
Specifies the collection of context parameters in a context parameter set.
Set oContextParameters = Object.Parameters
| Object | ContextParameterSet Object with this property |
| oContextParameters | ContextParameters Returned object |
The following example generates a set with two context parameters and displays the number of context parameters:
| VBScript | Python |
Dim oMyDataStore Set oMyDataStore = Navigator.ConnectDataStore("Herkules") '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 number of parameters Call MsgBoxDisp(oMyParameterSet.Parameters.Count)