I'm guessing it is searching for a matching switch object with in the list right?
That's right.
You can't use Contains method in this case. You have to loop and cast to find the right value
Dim i As Integer
For i = 0 To VisioSwitchArray.Count - 1
If CType(VisioSwitchArray.Item(i), switch).IP = "10.0.0.2" Then
' Found
Exit For
End If
Next i
Reputation Points: 218
Solved Threads: 201
Veteran Poster
Offline 1,024 posts
since Aug 2008