I can't figure it out anymore
--

My prob:
The user can add files to a listbox to let 'm run in the program (in a batch-sequence) but ofcourse I have to let the user delete files he doesn't need to be parsed.

but....

when I try to delete a item in a selected() way it gives me an error..

--

If lList.ListCount = 1 Then
lList.RemoveItem (lList.ListIndex)
Else
For I = 0 To (lList.ListCount)
If lList.Selected(I) = True Then
lList.RemoveItem (I)
End If
Next I
End If

Most of the time if I = 2 then it crashes...
What am I doin' wrong here?

Thnx in advance;