Function GetText(stmp As String) As String
Dim i As Integer, j As Integer, s1 As String
For i = 1 To Len(stmp)
If s1 = Mid(stmp, i, 1) Then
j = j + 1
Else
If s1 <> "" Then GetText = GetText & j & s1
j = 1
s1 = Mid(stmp, i, 1)
End If
Next
End Function作者: fcghw 时间: 2009-11-22 12:23 5#t小宝
不行啊, t小宝你再帮我改改啊 谢谢作者: fcghw 时间: 2009-11-22 12:34
最后如果是一个字符就没法计数了作者: fcghw 时间: 2009-11-22 12:40
完美解决了,代码改成:
Function GetText(stmp As String) As String
Dim i As Integer, j As Integer, s1 As String