|
-
Feb 6th, 2003, 11:58 AM
#1
Thread Starter
Addicted Member
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:
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
 Eat long and prosper! 
If someone helps you, find someone you can help.
If you still have time, click on the darn banner up there and help the forum! 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|