填空题

执行下面的程序段,x的值为【 】。   Private Sub Command1_Click()    For i=1 To 9      a=a + i    Next i    x=Val(i)    MsgBox x   End Sub

【参考答案】

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

填空题
以下程序的功能是从键盘输入若干个学生的考试成绩,统计并输出最高分和最低分,当输 入负数时结束输入,输出结果。请补充完整下列程序段。Dim x,amax,amin As Singlex=InputBox( Enter a score )amax=xamin=xDo While【 】 If x>amax Thenamax=xEnd IfIf【 】Thenamin=xEnd Ifx=InputBox( enter a score )LoopPrint max= ;amax, min= ;amin
填空题
在窗体上画一个通用对话框,其名称为CommonDialog1,然后画一个命令按钮,并编写下列事件过程:Private Sub Command1_Click()CommonDialog1.Filter= All Files(*.*)|*.*|Text Files _& (*.txt)|*.txt|Batch Files(*.bat)|*.bat CommonDialog1.FilterIndex=1CommonDialog1.ShowOpenMsgBox CommonDialog1.FileNameEnd Sub程序运行后,单击命令按钮,将显示一个“打开”对话框,此时在“文件类型”框中显示的是【 】;如果在对话框中选择d盘temp目录下的tel.txt文件,然后单击“确定”按钮,则在MsgBox信息框中显示的提示信息是【 】。
相关试题
  • 下面程序运行后,单击命令按钮,输出的结果...