( ?。?/div>
Dim s As String,m As String
Dim t As String
Dim k As String
Dim c As Integer
s=Text1.Text
n1=Len(s)
s3=Text3.Text
n3=Len(s3)
If n3<26Then
Label1.Caption=“請(qǐng)重新輸入密鑰!“
Text3.Text=““
Exit Sub
End If
m=“abcdefghijklmnopqrstuvwxyz“
For i=1To n1
k=Mid(s,i,1)
If
asc(k)<97
asc(k)<97
Then'將大寫(xiě)字母轉(zhuǎn)換為小寫(xiě)
k=Chr(Asc(k)+32)
End If
c=1
Do While c<=Len(m)
If k=Mid(m,c,1)Then
Exit Do
End If
c=c+1
c=c+1
Loop
t=t+
Mid(s3,c,1)
Mid(s3,c,1)
Next i
Text2.Text=t
End Sub.