Property: Count for ContextParameters
- Updated2024-09-12
- 1 minute(s) read
DIAdem NAVIGATOR > Properties > Property: Count for ContextParameters
Property: Count for ContextParameters
Specifies the number of context parameters in a ContextParameters collection.
Object.Count
| Object | ContextParameters Object with this property |
| Object.Count | LongInteger with read access |
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("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)