您所在的当前位置: 计算机等级考试题库   >  
BASIC题库  
  >   [单项选择题] 窗体上有名称为Text1、Text2的2个文本框,有一个由3个单选按钮构成的控件数组 Option1,如图1所示。程序运行后,如果单击某个单选按钮,则执行Text1中的数值与该单选按钮所对应的运算(乘以1、10或100),并将结果显示在Text2中,如图2所示,为了实现上述功能,在程序中的问号()处应填入的内容是()。 Private Sub Option1 Click(Index As Integer)If Text1.Text<>""ThenSelect CaseCase 0Text2.Text=Val(Text1.Text)Case 1Text2.Text=Val(Text1.Text)*10Case 2Text2.Text=Val(Text1.Text)*100End SelectEnd IfEnd Sub A.Index B.Option1.Index C.Option1(Inde D.Option1(IndValue
问题:
发布时间:2022-07-01

[单项选择题] 窗体上有名称为Text1、Text2的2个文本框,有一个由3个单选按钮构成的控件数组 Option1,如图1所示。程序运行后,如果单击某个单选按钮,则执行Text1中的数值与该单选按钮所对应的运算(乘以1、10或100),并将结果显示在Text2中,如图2所示,为了实现上述功能,在程序中的问号()处应填入的内容是()。 Private Sub Option1 Click(Index As Integer)If Text1.Text<>""ThenSelect CaseCase 0Text2.Text=Val(Text1.Text)Case 1Text2.Text=Val(Text1.Text)*10Case 2Text2.Text=Val(Text1.Text)*100End SelectEnd IfEnd Sub


A.Index
B.Option1.Index
C.Option1(Inde
D.Option1(IndValue

可能感兴趣的题目: