|
-
Sep 10th, 2007, 11:21 PM
#1
Thread Starter
PowerPoster
[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(path1, scan);
theFiles = GetFilesAfterDate(path2, scan);
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.

-
Sep 11th, 2007, 05:51 AM
#2
I wonder how many charact
Re: [RESOLVED] Adding to an array
By the resolved title, I'm guessomg that morning cup of coffee finally kicked in...
-
Sep 18th, 2007, 09:53 AM
#3
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|