|
-
Aug 7th, 2003, 10:12 PM
#1
Thread Starter
Lively Member
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
-
Aug 7th, 2003, 10:19 PM
#2
Frenzied Member
There is no size limit for the Arraylist. Its dynamic, you can add and remove items.
-
Aug 7th, 2003, 10:22 PM
#3
Thread Starter
Lively Member
Hmmm... well then, will that code i used (searchfor = users.IndexOf(uid)) search from spot 1 to spot 1000?
-
Aug 7th, 2003, 10:27 PM
#4
Frenzied Member
Are you trying to find an item in the list?
-
Aug 7th, 2003, 10:55 PM
#5
Thread Starter
Lively Member
yes, and if its not there, i want to add it
-
Aug 7th, 2003, 10:59 PM
#6
Frenzied Member
That should work. You can also use the contains method.
-
Aug 7th, 2003, 11:02 PM
#7
Thread Starter
Lively Member
Actually, nevermind, its what im doing... not the array
Last edited by Azkar; Aug 7th, 2003 at 11:05 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|