Splitting a string... problem

darknuke

Well-known member
Joined
Oct 3, 2003
Messages
68
How can I split a string without specifying a delimeter?

Example:

Code:
 TextBox1.Text = "abcde"
Dim splitArray as Array

splitArray = TextBox1.Text.Split()

 Should output:
 splitArray(0) = "a"
 splitArray(1) = "b"
 splitArray(2) = "c"
 splitArray(3) = "d"
 splitArray(4) = "e"

I get nothing when I try to return the elements, whats wrong?
 
Exactly what I did while checking through the namespace, but when I tried using the array elements it would give me an error stating char value are not valid for use in integers. :(
 
Back
Top