zyp 发表于 2005-6-4 17:52
Dim i As Integer, MyStr As String
MyStr = "DFGH123456789"
For i = 1 To Len(MyStr)
可能这样更好吧?
Function Astr(str As String) As Variant
功能: 返回分解字符串后的数组
Dim A()
ReDim A(Len(str) - 1)
Dim i As Integer
For i = 0 To UBound(A)
A(i) = Mid(str, i, 1)
Next i
Astr = A
End Function