Results 1 to 4 of 4

Thread: More stuff with arrays...

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2003
    Posts
    98

    More stuff with arrays...

    I think i might have narrowed my problem down to the array... how do i create and expand an array?

    redim? right


    well, is there a way i can just

    Dim Array()

    and then add to it without using redim?

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    No, that will not work. You have to use redim, or you can just use an ArrayList to dynamically add and remove elements.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2003
    Posts
    98
    When i redim, it add keeps all my old data, right?

  4. #4
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    You have to use Redim preserve to keep the old stuff

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