
Private Function tran(ByVal s As String, ByVal r As Integer) As Integer
Dim n As Integer, i As Integer
s = UCase(Trim(s))
For i = 1 To Len(s)
If Mid(s, i, 1) >= "a" Then
n = Asc(Mid(s, i, 1)) - Asc("a") + 10
Else
n = Val(Mid(s, i, 1))
End If
tran_dec = tran_dec + n * r ^ (Len(s) - i)
Next i
End Function




by: 发表于:2017-11-27 11:25:43 顶(0) | 踩(0) 回复
??
回复评论