DIAdem Help

Property: Count for ContextParameters

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

Property: Count for ContextParameters

Specifies the number of context parameters in a ContextParameters collection.

Object.Count
ObjectContextParameters
Object with this property
Object.CountLongInteger with read access

The following example generates a set with two context parameters and displays the number of 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)
'Displaying number of parameters
Call MsgBoxDisp(oMyParameters.count)