单选题
窗体上有一个命令按钮和一个文本框,程序执行后,在文本框中输入12345,单击命令按钮后的输出结果为( )。
Private Sub Command1_Click()
Dim A As Integer,B As Integer
Text1.SelStart=2
Text1.SelLength=2
A=Val(Text1.SelText)
B=Len(Text1.Text)
Print A*B
End Sub
A、
68
B、
115
C、
170
D、
1170
【正确答案】
C
【答案解析】
提交答案
关闭