求算法.....题目如下: 输入一个字符,判断起属于大写字母、小写字母、数字、或其他字符。
1个回答
展开全部
用VB编程:
在下列宴核过程中晌氏掘用Ascii 码识别
Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
If KeyAscii >= 32 Then
If KeyAscii <核迹= vbKey9 And KeyAscii >= vbKey0 Then
Else
KeyAscii = 0
End If
End If
End Sub
在下列宴核过程中晌氏掘用Ascii 码识别
Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
If KeyAscii >= 32 Then
If KeyAscii <核迹= vbKey9 And KeyAscii >= vbKey0 Then
Else
KeyAscii = 0
End If
End If
End Sub
更多追问追答
追问
能不能写成算法,拍照发给我。。谢谢!
追答
Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
If KeyAscii >= 48 And KeyAscii = 65 And KeyAscii = 97 And KeyAscii <= 122 Then Call MsgBox("小写字母!", vbOKOnly + vbInformation, "提示")
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询