G
Guest
Hi,
I declared ItemTypes as:-
Dim ItemTypes As New ArrayList
Outside the Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load and have a function that refs it:-
Function SetIndex(ByVal TheItem As String)
Dim i As Integer
For i = 0 To ItemTypes.Count - 1
If TheItem = ItemTypes(i) Then
Return i
End If
Next
End Function
WHat could cause THIS ERROR?
Any ideas!
I declared ItemTypes as:-
Dim ItemTypes As New ArrayList
Outside the Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load and have a function that refs it:-
Function SetIndex(ByVal TheItem As String)
Dim i As Integer
For i = 0 To ItemTypes.Count - 1
If TheItem = ItemTypes(i) Then
Return i
End If
Next
End Function
WHat could cause THIS ERROR?
Any ideas!