[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!
Dim Name, Code As String Dim A, L As Long Name = CStr(Text1.Text) L = Len(Name) If L = 0 Then Text2.Text = "Input your name,Please!" Else For i = 1 To L A = A + (Asc(Mid(Name, i, 1)) Xor 100) Next i Code = A & "-" & A * 3389 Text2.Text = Code End If