You can't use lists with integers - you'll need to use types to wrap them. This is a pain, yeah.
Contains uses compare and will sometimes crash if you have any null objects in the list, depending on the order.
This crashes:
This does not:
Contains uses compare and will sometimes crash if you have any null objects in the list, depending on the order.
This crashes:
Type Blah End Type Global List:TList = New TList Global b:Blah = new Blah List.AddLast( Null ) List.AddLast( b ) Print List.Contains( b )
This does not:
Type Blah End Type Global List:TList = New TList Global b:Blah = new Blah List.AddLast( b ) List.AddLast( Null ) Print List.Contains( b )