DIAdem Help

Method: Remove for ContextParameters

  • Updated2024-09-12
  • 1 minute(s) read

Method: Remove for ContextParameters

Deletes a context parameter from the collection of context parameters.

Object.Remove(NameOrIndex)
ObjectContextParameters
Object with this method
NameOrIndexVariant
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:

VBScriptPython

 

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)