GetStepParamCount Example

 

The following example returns the number of parameters in step 2 into the variable iNumOfSteps. It then goes into a loop and displays each parameter, one by one, in a message box.

 

Sub Main

 Dim iNumOfSteps As Integer

 Dim varParameter As Variant

 

 iNumOfSteps = CurrentTask2.GetStepParamCount (1)

 

 for iIndex = 0 to iNumOfSteps

  varParameter = CurrentTask2.GetStepParameter (1, iIndex)

  MsgBox varParameter

 next iIndex

End Sub