-
Max size on arraylist?
Is there a max size on an arraylist?
Heres what im doing, im going through everything and adding it to an arraylist, if it find a multiple it SHOULDENT add it to the list, and skip it, but it only seems to work if the items are close to eachother...
Code:
searchfor = users.IndexOf(uid)
If searchfor > -1 Then
thats the code im using
-
There is no size limit for the Arraylist. Its dynamic, you can add and remove items.
-
Hmmm... well then, will that code i used (searchfor = users.IndexOf(uid)) search from spot 1 to spot 1000?
-
Are you trying to find an item in the list?
-
yes, and if its not there, i want to add it
-
That should work. You can also use the contains method.
-
Actually, nevermind, its what im doing... not the array