evanz
New member
- Joined
- Feb 2, 2012
- Messages
- 3
- Programming Experience
- 3-5
I have an array list declared globally as
Dim OnGraph as new ArrayList
[XCODE]On Error Resume Next
I also get these two debug errors
A first chance exception of type 'System.NullReferenceException' occurred in Greenlight.exe
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
I read something about enumeration but i couldnt find any good threads/articles on google.
Any tips?
Dim OnGraph as new ArrayList
[XCODE]On Error Resume Next
Dim tmp() As String, i As Integer, tmp2() As String, tmpid As String
tmp = Split(lstVials.SelectedItem, ":") 'it will obtain vial name "B366"
tmpid = tmp(1)
For i = 0 To OnGraph.Count
tmp2 = Split(OnGraph.Item(i).ToString, ":")
'This will also obtain "B366"
If tmp2(0) = tmpid Then
OnGraph.RemoveAt(i) 'even though the program hits this line of code it does not remove any items.
End If
Next i
[/XCODE]tmp = Split(lstVials.SelectedItem, ":") 'it will obtain vial name "B366"
tmpid = tmp(1)
For i = 0 To OnGraph.Count
tmp2 = Split(OnGraph.Item(i).ToString, ":")
'This will also obtain "B366"
If tmp2(0) = tmpid Then
OnGraph.RemoveAt(i) 'even though the program hits this line of code it does not remove any items.
End If
Next i
I also get these two debug errors
A first chance exception of type 'System.NullReferenceException' occurred in Greenlight.exe
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
I read something about enumeration but i couldnt find any good threads/articles on google.
Any tips?