I have a long string like this
dim LongString as String = "123abc456def789ghi"
And I want to split it into a string array. Each element of the array should be in 3 characters length
For example,
Dim LongArray(5) As String
LongArray(0) = "123"
LongArray(1) = "abc"
LongArray(2) = "456"
LongArray(3) = "def"
LongArray(4) = "789"
LongArray(5) = "ghi"
How do I split it using VB.net code?
See Question&Answers more detail:os