作者: 情比金坚 时间: 2006-1-7 10:01
Function f(s As String)
Dim Str As String
Dim x As String
Dim y As Integer
For i = 1 To Len(s)
x = Mid(s, i, 1)
y = InStr("0123456789", x)
If y > 0 Then
Str = Str & y - 1
Else
Str = Str & x
End If
f = Str
Next
End Function