设计一个只接受字母键的文本框,在文本框text1中输入一串字符时,文本框text2中就即

如题所述

第1个回答  2016-05-11
Private Sub Text1_KeyPress(KeyAscii As Integer)
If Not (Asc("a ") <= KeyAscii And KeyAscii <= Asc("z ") Or _
Asc("A ") <= KeyAscii And KeyAscii <= Asc("Z ")) Then
KeyAscii = 0
End If
Text2.Text = StrReverse(Text1.Text)
End Sub追问

反序输出会少一个字母

本回答被网友采纳
相似回答