Results 1 to 7 of 7

Thread: Max size on arraylist?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2003
    Posts
    98

    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

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    There is no size limit for the Arraylist. Its dynamic, you can add and remove items.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2003
    Posts
    98
    Hmmm... well then, will that code i used (searchfor = users.IndexOf(uid)) search from spot 1 to spot 1000?

  4. #4
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Are you trying to find an item in the list?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    May 2003
    Posts
    98
    yes, and if its not there, i want to add it

  6. #6
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    That should work. You can also use the contains method.

  7. #7

    Thread Starter
    Lively Member
    Join Date
    May 2003
    Posts
    98
    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
  •  



Click Here to Expand Forum to Full Width