Results 1 to 3 of 3

Thread: [RESOLVED] Adding to an array

  1. #1

    Thread Starter
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336

    Resolved [RESOLVED] Adding to an array

    Hey guys.

    I have an array that is retrieving a list of files names via a method. This works fine when I call the method the first time, yet when I call it the second time the first files seem to be removed. I thought it would just append the new file names to the end of the array.

    Here is the code
    PHP Code:
    string[] theFiles = new string[] { };
    theFiles GetFilesAfterDate(path1scan);
    theFiles GetFilesAfterDate(path2scan); 
    shouldnt it just append the file names on to the end of the array when it is called the second time?

    Thanks!
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704

    Re: [RESOLVED] Adding to an array

    By the resolved title, I'm guessomg that morning cup of coffee finally kicked in...

  3. #3
    Addicted Member
    Join Date
    Jan 2007
    Posts
    162

    Re: [RESOLVED] Adding to an array

    There is also the possibility of using an ArrayList.

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