G
Geoff Cox
Hello,
Could someone please talk me through following code? I understand the
overall picture but not the details. Forexample, I'm not clear on the
use of ReDim (why Dim and then ReDim?), Dir$, UBound and ReDim
Preserve.
Thanks
Geoff
ReDim rayFileList(1 To 1) As String
strTemp = Dir$(FolderPath & FileSpec)
While strTemp <> ""
rayFileList(UBound(rayFileList)) = FolderPath & strTemp
ReDim Preserve rayFileList(1 To UBound(rayFileList) + 1) As_
String
strTemp = Dir
Wend
Could someone please talk me through following code? I understand the
overall picture but not the details. Forexample, I'm not clear on the
use of ReDim (why Dim and then ReDim?), Dir$, UBound and ReDim
Preserve.
Thanks
Geoff
ReDim rayFileList(1 To 1) As String
strTemp = Dir$(FolderPath & FileSpec)
While strTemp <> ""
rayFileList(UBound(rayFileList)) = FolderPath & strTemp
ReDim Preserve rayFileList(1 To UBound(rayFileList) + 1) As_
String
strTemp = Dir
Wend