Array initialisation values

  • Thread starter Thread starter John Dann
  • Start date Start date
J

John Dann

I want to populate a list box with the names of a set of files in a
particular folder with the same file type, so:

Dim MyArray as string = Directory.Getfiles(Path, ".etc")

But if the number of file names returned is zero, what state is the
array in and how can I test for this condition and distinguish it from
when just one file name is returned? (MyArray Is Nothing seems to be
False always)

Thanks
JGD
 
Back
Top