有没有大神在帮忙看一下,想写一个加密程序,把数字加密成对应字母,但是出来的结果只能加密1位数字
Private Sub Command2_Click()Dim str1 As String, str2 As String
Dim i As Integer, ch As String * 1
str1 = Text1.Text
For i = 1 To Len(str1)
ch = Mid(str1, i, 1)
Select Case ch
Case 0: str2 = "n"
Case 1: str2 = "p"
Case 2: str2 = "m"
Case 3: str2 = "x"
Case 4: str2 = "b"
Case 5: str2 = "l"
Case 6: str2 = "7"
Case 7: str2 = "g"
Case 8: str2 = "e"
Case 9: str2 = "w"
End Select
str2 = str2 + ch
Next i
str2 = StrReverse(str2)
Text2.Text = str2