问题
单项选择题
窗体上有名称分别为Text1、Text2的2个文本框,有一个由3个单选按钮构成的控件数组Option1,如图1所示。程序运行后,如果单击某个单选按钮,则执行Text1中的数值与该单选按钮所对应的运算(乘以1、10或100),并将结果显示在Text2中,如图2所示。为了实现上述功能,在程序中的下划线处应填入的内容是( )。
Private Sub Option1_Click(Index As Integer) If Text1.Text<>""Then Select Case______ Case 0 Text2.Text=Val(Text1.Text) Case 1 Text2.Text=Val(Text1.Text)*10 Case 2 Text2.Text=Val(Text1.Text)*100 End Select End If End Sub
A.Index
B.Option1.Index
C.Option1(Index)
D.Option1(Index).Value
答案
参考答案:A