Hi there,
I have this loop to delete elements from an arraylist
VB Code:
  1. For i = 0 To myarraylist.count - 1
  2.             If some_statement Then
  3.                 myarraylist.removeat(i)
  4.             End If
  5.         Next
Is there any risk of having index out of range, as the arraylist gets smaller??
Basicaly the question is if the compiler sets the number of loops at the beggining or checks the myarraylist.count - 1 after every loop...Thanks