Add values in 1-dimensional array

  • Thread starter Thread starter Joris De Groote
  • Start date Start date
J

Joris De Groote

Hi,

I have an array called files() (String). There are a couple of values in
there. I want to add more values in that array.
How can I do this? When I try files += System.IO.Directory.GetFiles(source)
I get an error.

Thanks
 
Joris,

Do never more us a fixed array if it is not fixed.

There are so many better solutions, that this message would probably not be
accepted by skynet if I was typing them all.

However take my advice and start with looking at the arraylist or/and the
generic list.

Cor
 
Hey

Yeah, I know arraylists :). Anyway, I have now used an arraylist for this
thing. Now I have created this with some workarounds :).
How can you get System.IO.Directory.GetFiles(source) in an arraylist in one
time? So that the values are in the arraylist? I can only put data in
arraylists one by one.

Thanks
Joris
 
Back
Top