资 源 简 介
VB编写完整源码判断字符串中某一字符是否大写,执行下面的代码,这个例子简单哦,不多介绍了,直接看代码吧:
If Asc(Mid(Text1, Val(Text2), 1)) >= 65 And Asc(Mid(Text1, Val(Text2), 1)) <= 90 Then
Label2.Caption = "位为大写"
Else
If Asc(Mid(Text1, Val(Text2), 1)) >= 97 And Asc(Mid(Text1, Val(Text2), 1)) <= 122 Then
Label2.Caption = "位为小写"
End If
End If
需要更多代码请下载本源码实例包。