填空题

设有命令按钮Command1的单击事件过程,代码如下:
Private Sub Command1_Click()
Dim a(30)As Integer
For i=1 To 30
a(i)=i
Next
For Each arrItem 【13】 a
If arrItem Mod 7=0 Then Print arrItem:
If arrItem>90 Then Exit For
Next
End Sub
请填空。

【参考答案】

In
<上一题 目录 下一题>
热门 试题

填空题
有一过程如下: Sub Subl (m As Integer,total As Long) Dim i AS Integer total = 1 For i = 1 To m total = total * i Next End Sub 调用它的事件过程如下: Private Sub Commandl_Click( ) Dim tot As Long, a As Integer a = Val( InputBox ( 请输入数据 ) Call Subl (a,tot) Print tot End Sub 则输入数据5,运行结果为 【10】 。
填空题
在一个窗体上有一个命令按钮,CmdMax。单击CmdMax时,窗体上显示“字体由小变大”,字号每次增加2。请填空。 Private Sub Form_Load() Form1.Caption=“字体变化示范” CmdMax.Caption=“字体变大” End Sub Private Sub CmdMax_Click() 【8】 Form1.Print“字体由小变大” End Sub
相关试题
  • 语句PopupMenu PMENU,4 Or 2,,,PM...
  • 在窗体上有一个名称为Laell的标签和一个名...
  • 下列事件过程的功能是:建立一个名为Datal...