- UID
- 4497
注册时间2005-11-9
阅读权限10
最后登录1970-1-1
周游历练
该用户从未签到
|
发表于 2007-1-3 19:48:49
|
显示全部楼层
Private Sub Command1_Click(ByVal eventSender As Object, ByVal eventArgs As EventArgs)
Dim text1 As String = Conversions.ToString(Strings.Len(Me.Text1.Text))
Dim num2 As Integer = 0
If (Operators.CompareString(Me.Text1.Text, "", False) = 0) Then
Interaction.MsgBox(ChrW(35831) & ChrW(36755) & ChrW(20837) & ChrW(29992) & ChrW(25143) & ChrW(21517), 0, Nothing)
ElseIf (Operators.CompareString(Me.Text2.Text, "", False) = 0) Then
Interaction.MsgBox(ChrW(35831) & ChrW(36755) & ChrW(20837) & ChrW(24207) & ChrW(21015) & ChrW(21495), 0, Nothing)
Else
Dim num3 As Short = CShort(Conversions.ToInteger(text1))
Dim num1 As Short = 1
Do While (num1 <= num3)
num2 = (Strings.Asc(Strings.Mid(Me.Text1.Text, num1, 1)) + num2)
num2 = (num2 Xor 5768)
num1 = CShort((num1 + 1))
Loop
Dim text2 As String = (Conversions.ToString(num2) & "-" & Me.Text1.Text)
If (Operators.CompareString(Me.Text2.Text, text2, False) = 0) Then
Interaction.MsgBox(ChrW(24685) & ChrW(21916) & ChrW(20320) & ChrW(65292) & ChrW(27880) & ChrW(20876) & ChrW(25104) & ChrW(21151), 0, ChrW(25552) & ChrW(31034))
Else
Interaction.MsgBox(ChrW(23545) & ChrW(19981) & ChrW(36215) & ChrW(65292) & ChrW(24744) & ChrW(36755) & ChrW(20837) & ChrW(24207) & ChrW(21015) & ChrW(21495) & ChrW(38169) & ChrW(35823) & ChrW(65281), 0, ChrW(25552) & ChrW(31034))
End If
End If
End Sub |
|