单项选择题
下列数组声明正确的是( )。
A.n=5 Dim a(1 to n) As Integer
B.Dim a(10) As Integer ReDim a(1 To 12)
C.Dim a() As Single ReDim a(3,4) As Integer ReDim a(1 to n)As Integer
D.Dim a() As Integer n=5
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
在运行阶段,要在文本框Text1获得焦点时选中文本框中的所有内容,则对应的事件过程是( )。
A.Private Sub Text1_GotFocus() Text1.SelStart=0 Text1.SelLength=Len(Text1.Text) End Sub
B.Prirate Sub Text1_LosFocus() Text1.SelStart=0 Text1.SelLength=Len(Text1.Text) End Sub
C.Private Sub Text1_Change() Text1.SelStart=0 Text1.SelLength=Len(Text1.Text) End Sub
D.Private Sub Text1_SetFocus() Text1.SelStart=0 Text1.SelLength=Len(Text1.Text) End Sub
点击查看答案
单项选择题
下列程序段的执行结果为( )。 a=1 b=0 Select Case a Case 1 Select Case b Case 0 Print **1** Case 1 Print **1** End Select Case 2 Print **2** End Select
A.**0**
B.**1**
C.**2**
D.0
点击查看答案
相关试题
假定一个工程由一个窗体文件Forml和两个标...
阅读程序: Option Base 1 Private S...
假定在窗体(名称为Form1)的代码窗口中定...
在窗体上添加一命令按钮,名为Command,事...
函数String(n, str )的功能是( )。