K
Kym
Hey,
I have an arraylist which I have added a number of objects to (all the same
type of object), I need to be able to check if the array already contain the
object before adding it, I have tried something like...
if Not myArray.contains(newObject) then
myArray.Add(newObject)
end if
This will work with a string object but not a user defined object.
I can get things to work by using a HashTable but I'm sure I have done this
before using an ArrayList.
Can anyone let me know If and How to do this.
All the Best
Kym
I have an arraylist which I have added a number of objects to (all the same
type of object), I need to be able to check if the array already contain the
object before adding it, I have tried something like...
if Not myArray.contains(newObject) then
myArray.Add(newObject)
end if
This will work with a string object but not a user defined object.
I can get things to work by using a HashTable but I'm sure I have done this
before using an ArrayList.
Can anyone let me know If and How to do this.
All the Best
Kym