Dim i As Integer
Dim tmp As Long
Dim PART1 As String
Dim PART2 As String
'---------------------------------
If KeyAscii = Asc(vbCrLf) Then
username = Text1.Text
'---------------------------------
For i = 1 To Len(username)
tmp = tmp + (Asc(Mid(username, i, 1)) * 4)
Next
PART2 = CStr(tmp)
'---------------------------------
On Error Resume Next
'---------------------------------
Dim a, b
b = &H654789
For i = Len(username) To 1 Step -1
b = b - 1
a = b * 2 '理论上是可以的。但是VB中会溢出
b = b + a '溢出了以后VB就不计算了
b = b - 1 '所以计算不出来
Debug.Print Hex(b)
Next