I need to store a set of strings (filenames and paths in fact) in a
dynamic string array as in:
MyArray = Directory.Getfiles (etc)
This array needs module scope but is populated as above in a procedure
that will be called frequently to look at a changing folder contents.
The question is whether I need to (or it's good practice to) clear the
array each time before it's populated, ie presumably by:
Erase MyArray
MyArray = Directory.Getfiles (etc)
and since first time through the array will have been declared but not
populated, possibly what I should have is:
If Not MyArray is Nothing Then Erase MyArray
MyArray = Directory.Getfiles (etc)
Or is this a detail issue of no real consequence?
TIA
JGD