I have a third party web service. With VB.Net, one of the parameters of the function I'm using accepts an array of MyObject. So if I wrote the code below, SomeFunction would work as expected.
Dim myArr(0) As MyObject
SomeFunction(myArr)
Since myArr could hold many elements I wanted to create a different function that would allow me to pass in the relevant element (0,1,2,3,4....) into SomeFunction, rather than passing in 0 (in this case manually).
I'm not sure how to do this. Could someone help here?