关于数组的问题
谁知道怎么输入一段话,然后将这段话放入数组中啊?输入的是英语~大家快帮忙回答下啊,急需
请问..是怎么放入数组中呢?..
如
this my bbs
如果这句话中怎么放入数组呢?...
Option Explicit
Private Sub Command1_Click()
Dim arr() As String
Dim strLine As String
strLine = "this is my bbs"
Dim i As Integer
Dim strLength As Integer
strLength = Len(strLine)
ReDim arr(strLength) As String
For i = 1 To strLength
arr(i) = Mid(strLine, i, 1)
Next
For i = 1 To strLength
If arr(i) <> " " Then
Print arr(i);
End If
Next
End Sub