P
Paul Ilacqua
The code below Fails to compile with option strict on... with off it is
fine. Where is the problem?
Function Find_In_List(ByVal alIn As ArrayList, ByVal iIndex As Integer,
ByVal sFindVal As String) As String
If alIn Is Nothing Then
Return ("")
End If
For i As Integer = 0 To alIn.Count - 1
If alIn.Item(i)(iIndex).ToString = sFindVal Then '---- Fails
Here
Find_In_List = alIn.Item(i)(0).ToString & "|" &
alIn.Item(i)(1).ToString & "|" & alIn.Item(i)(2).ToString
Exit For
End If
Next
End Function
Thanks
Paul
fine. Where is the problem?
Function Find_In_List(ByVal alIn As ArrayList, ByVal iIndex As Integer,
ByVal sFindVal As String) As String
If alIn Is Nothing Then
Return ("")
End If
For i As Integer = 0 To alIn.Count - 1
If alIn.Item(i)(iIndex).ToString = sFindVal Then '---- Fails
Here
Find_In_List = alIn.Item(i)(0).ToString & "|" &
alIn.Item(i)(1).ToString & "|" & alIn.Item(i)(2).ToString
Exit For
End If
Next
End Function
Thanks
Paul