Remove not removing..

BlitzMax Forums/BlitzMax Programming/Remove not removing..

When I call MyList.Remove( MyObject ) in a Eachin-MyList-Loop is there anyway I can get the message "Not Found" ? Because I do but it seems impossible because to call it assumes it exsists. There is another factor in this I know it.. Can anyone figure out how a remove() would not work?

It would be eqvivialent to this not working:

Global List:TList
For C:Car = EachIn List
If List.Contains(C) DebugLog "Found it!" Else DebugLog "Not Found!"
Next

How can I ever get a "Not Found" from the above? I loop the list I check. But I get "Not Found" on all objects. Still it's the same list.

I did a MyList.Count() before and after the remove - it did not change so I assume it's not a flushmem issue.