H
hangyang
Unregistered / Unconfirmed
GUEST, unregistred user!
Public Function hextodec(aa As String, mdlS As Integer, numS As Long) As Variant
Dim t As String, u As String
Dim h As Integer, numb As Long
numb = 0
t = Mid(aa, mdlS, numS)
For i = 1 To Len(t) / 2
numb = numb * 256 + Val("&h" &
(Mid(t, i * 2 - 1, 2)))
Next i
hextodec = numb
End Function
Dim t As String, u As String
Dim h As Integer, numb As Long
numb = 0
t = Mid(aa, mdlS, numS)
For i = 1 To Len(t) / 2
numb = numb * 256 + Val("&h" &
(Mid(t, i * 2 - 1, 2)))
Next i
hextodec = numb
End Function