Hi all:
I'm trying to add to an array and I keep getting an "Index out of bounds error".
Any help will be greatly appreciated.
Ron Repp
If gray hair is a sign of wisdom, then I'm a genius.
My newest novel: Wooden Warriors
I'm trying to add to an array and I keep getting an "Index out of bounds error".
Code:
Set FSO = CreateObject("Scripting.FileSystemObject")
Set F = FSO.OpenTextFile(strFilePathName, 1, False)
i = 0
Do While F.AtEndOfStream <> True
RetString = F.ReadLine
Replace RetString, vbCrLf, ""
FileArray(i) = RetString
Loop
F.Close
Any help will be greatly appreciated.
Ron Repp
If gray hair is a sign of wisdom, then I'm a genius.
My newest novel: Wooden Warriors