Splitting a string into an array?
Hey, all. Having a bit of trouble splitting this string into an array and then displaying it in a message box. Here's my code:
Code:
Dim myString As String = "abcdefg"
Dim myArray As Array = myString.Split("")
MsgBox(myArray)
That should, if I'm not mistaken (which I am, because it's not working ;)) split up the string "myString" and put each character in its own entry of myArray, and then display the entire array in a message box, but that isn't happening. The error I'm getting when I do this is as follows:
Quote:
Argument 'Prompt' cannot be converted to type 'String'.
Also - do you reference a specific entry of an array via the opening and closing brackets like this?: [STRINGNUMBER]
Thanks!
Rick