Hi.I don't know where to post this ... please help.
I'm trying to put each character in a string into an array.

Private Sub cmdNameslow_Click()

Dim username As String
Dim index As Integer
Dim myArray()
ReDim myArray(Len(username))

'prompt username
username = InputBox("Enter your name", "NAME")

'display username one charachter at a time

For index = 1 To Len(username)
myArray(index) = username
Next index

How do i go about doing this ?
Thanks

This may simplify some things for you.

Dim s As String = TextBox1.Text
Dim carray As Char()
carray = s.ToCharArray

:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.