I'm looking for advice on breaking up a very large string into many smaller strings. As an example, I have a string of 5000 characters. I have to split that string up into a sequential array of variables no larger than 450 characters. Would the following be the most efficient way to do it?
Dim stringSection() as String Private Sub extractSubStrings(giantString as String) Dim occurance as Integer occurance = 0 For i = 1 to Len(giantString) If i Mod 450 = 1 Or i = Len(giantString) Then occurance = occurance + 1 ReDim stringSection(occurance) stringSection = Mid(giantString, i-450, 450) End If Next i End Sub