请教各位大哥大姐这小段代码
Public Sub checksum(field As String)If field = "21" Then
CS = "*"
CS = 0
For i = 1 To Len(field)
CS = CS Xor Asc(Mid$(field, i, 1))
Next
CS = Hex(CS)
If Len(CS) = 1 Then
CS = "0" & CS
CS = "*" & CS
End Sub
这个函数的算法具体是怎样的啊,我不大明白.