Method: Remove for ContextParameters
- Updated2024-09-12
- 1 minute(s) read
DIAdem NAVIGATOR > Methods > Method: Remove for ContextParameters
Method: Remove for ContextParameters
Deletes a context parameter from the collection of context parameters.
Object.Remove(NameOrIndex)
| Object | ContextParameters Object with this method |
| NameOrIndex | Variant Specifies the name or the index of the context parameter. |
The following example generates a set with two context parameters and then deletes the second context parameters:
| 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) 'Deleting second parameter Call oMyParameters.Remove(2)