Hi there,
I have this loop to delete elements from an arraylist
Is there any risk of having index out of range, as the arraylist gets smaller??VB Code:
For i = 0 To myarraylist.count - 1 If some_statement Then myarraylist.removeat(i) End If Next
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




Reply With Quote