no fans of the retro style step loop?
Dim t As String="1234567890aaaaaaaaaabcedsfd"
Dim strings As List
strings.Initialize
For x=0 To t.Length-1 Step 10
strings.Add(t.SubString2(x,Min(x+10,t.Length)))
Next
Log(strings)
(ArrayList) [1234567890, aaaaaaaaaa, bcedsfd]
advanced regex version:
Dim regexStrings As List
regexStrings.Initialize
Dim m As Matcher=Regex.Matcher("(.{1,10})",t)
Do While m.Find
regexStrings.Add(m.Group(1))
Loop
Log(regexStrings)
(ArrayList) [1234567890, aaaaaaaaaa, bcedsfd]