在窗体上画一个名称为Command1的命令按扭和两个名称分别为Text1、Text2的文本框,然后编写如下事件过程:Private Sub Command1_Click( )n %= Text1.TextSelect Case nCase 1 to 20x=10Case 2,4,6x=20Case Is<10x=30Case 10x=40End SelectText2.Text=xEnd Sub程序运行后,如果在文本框Text1中输入10,然后单击命令按扭,则在Text2中显示的内容是________。

时间:2022-11-15 13:18:37

相似题目