单项选择题

在窗体上画一个名称为Text1的文本框和一个名称为Command1的命令按钮,然后编写如下事件过程: Private Sub Command1_Click() Dim i As Integer, n As Integer For i=0 To 50 i=i+3 n=n+1 If i>10 Then Exit For Next Text1.Text=Str(n) End Sub 程序运行后,单击命令按钮,在文本框中显示的值是 ______ 。

A.2
B.3
C.4
D.5
<上一题 目录 下一题>
热门 试题

单项选择题
在窗体上画一个命令按钮,然后编写如下代码: Private Type Record ID As Integer Name As String*20 End Type Private Sub Command1_Click() Dim MaxSize.NextChar,MyChar Open D: temp female.txt For Input As #1 MaxSize=LOF(1) For NextChar=1 To MaxSize Seek#1,NextChar MyChar=Input(1,#1) Next NextChar Print EOF(1) Close #1 End Sub 程序运行后,单击命令按钮,其输出结果为 ______。
A.True
B.False
C.0
D.Null
单项选择题
对窗体编写如下事件过程: Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single, Y As Single) If Button=2 Then Print AAAAA End If End Sub Private Sub Form_MouseUp(Button As Integer,Shift As Integer,X As Single, Y As Single) Print BBBBB End Sub 程序运行后,如果单击鼠标右键,则输出结果为 ______ 。
A.AAAAA BBBBB
B.BBBBB
C.AAAAA
D.BBBBB AAAAA
相关试题
  • 在窗体(Name属性为Form1)上画两个文本框...
  • 程序执行结果S的值是 【11】 。Private...
  • 设有如下的Visual Basic表达式:5*x^2...
  • 在过程定义中出现的变量名叫做 【13】 ...
  • 窗体、图片框或图像框中的图形通过对象的 ...