H
Howard Kaikow
How does one determine the number of lines before using ReadLine.
This would enable the ReDim to be out of the loop.
sReader = New StringReader(xxx.GetObjectText_)
If Not (sReader Is Nothing) Then
i = -1
Do Until sReader.Peek = -1
i = i + 1
ReDim Preserve yyy(i) ' yyy is typed as String
yyy(i) = sReader.ReadLine
Loop
End If
This would enable the ReDim to be out of the loop.
sReader = New StringReader(xxx.GetObjectText_)
If Not (sReader Is Nothing) Then
i = -1
Do Until sReader.Peek = -1
i = i + 1
ReDim Preserve yyy(i) ' yyy is typed as String
yyy(i) = sReader.ReadLine
Loop
End If