Bug? List.IndexOf not working as supposed to do

Status
Not open for further replies.

Mike1970

Well-Known Member
Licensed User
Longtime User
Hi everyone, why this simple line of code, is not working?
IndexOf Bug.jpg

I don't understand what could be the problem.. seems so straight forward...

That sub simply loads two lists with numbers, then i want to see if the contents are different, so as soon as IndexOf returns -1 i proceed with the rest of the code... my problem is that it return always -1 even if the element is in the list D:

thanks in advance
 
Status
Not open for further replies.
Top