柠檬试题库
search
首页 计算机 公务员 驾照 关于

设窗体上有2个文本框Text1和Text2,并有下面的事件过程:Dim nPrivate Sub Text1_KeyPress(KeyAscii As Integer) If "A"<=Chr(KeyAscii)And Chr(KeyAscii)<="Z" Then n=n+1 End If If KeyAscii=13 Then Text2.Text=n End IfEnd Sub程序运行时,在文本框Text1中输入“Visual Basic 6.0”并按回车键后,在文本框Text2中显示的是( )。


  • A.2
  • B.9
  • C.13
  • D.16
热度🔥175
参考答案:A
解析:打开微信小程序查看本题解析