If I am using a For next loop to cycle through a list, what's the best way to remove items from the list without having to exit the loop?
I generally do something like:
for x = 0 to myList.length - 1
myobject = mylist.get(x)
if myobject.value1 = 1 then
mylist.removeat(x)
exit
end if
next
I generally do something like:
for x = 0 to myList.length - 1
myobject = mylist.get(x)
if myobject.value1 = 1 then
mylist.removeat(x)
exit
end if
next