I wrote a program where I wanted a varying number of elements without having to keep updating code. I did something like this:
FileCount = FileCount + 1
ReDim Preserve NumFiles(FileCount)
Then I added my new element:
NumFiles(FileCount) = file$
This may be what you want to do.




Reply With Quote