单项选择题
在窗体上画一个命令按钮,名称为Command1,然后编写如下事件过程:
Private Sub Command1_Click()
a$=“software and hardware“
b$=Right(a$,8)
c$=Mid(a$,1,8)
MsgBox a$,,b$,c$,1
End Sub
运行程序,单击命令按钮,则在弹出的信息框的标题栏中显示的是( )。
A) sotfware and hardware
B) software
C) hardware
D) 1
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
在窗体上画一个名称为Command1的命令按钮,然后编写如下程序: Private Sub Command1_Click() Static X As Integer Static Y As Integer Cls Y=4 Y=Y+5 X=5+x Print X,Y End Sub 程序运行时,3次单击命令按钮Command1后,窗体上显示的结果为( )。
A) 15 16
B) 15 6
C) 15 15
D) 56
点击查看答案&解析
单项选择题
在窗体上画一个名为Command1的命令按钮,其Command1_Click事件过程如下: Sub Command1_Click() Dim student As studtype Dim record_no As Integer record_no=1 With SfUdent ino=12 Strname=“Smith” Strsex=“男” Smark=89 End With Put#1,record_no,student Close#1 End Sub 要求在c: 的随机文件student.dat写入一条记录。应在程序中空行处填入( )使该功能完整。
A) Open“c:\student.dat" For Input As#1 len=len(student)
B) Open "c:\student.dat" For Random As#1 len=len(student)
C) Open "c:\student.dat“For Output As#1 len=len(student)
D) Open "c:\student.dat”For Append As#1 len=len(student)
点击查看答案&解析
相关试题
鼠标移动经过控件时,将触发控件的( )。
在窗体上一个命令按钮,名称为Command1,...
Int(100*Rnd(1))产生的随机整数的...
在窗体上画四个文本框,并用这四个文本框建...
执行语句Open C: StuData.dat For In...