在窗体上画两个文本框和一个命令按钮,然后在命令按钮的代码窗口中编写如下事件过程: Private Sub Commandl_Click() Text1="VB programming" Text2=Text1 Text1="ABCD" End Sub 程序

admin2013-03-30  29

问题 在窗体上画两个文本框和一个命令按钮,然后在命令按钮的代码窗口中编写如下事件过程:
Private Sub Commandl_Click()
Text1="VB programming"
Text2=Text1
Text1="ABCD"
End Sub
程序运行后,单击命令按钮,文本框Text2中显示的内容为【  】。

选项

答案VB programming

解析 本段程序是先把“VB programming”赋给Text1,然后在把Text1的内容赋给Text2,最后把“ABCD”赋给Text1。所以最后Text1中的内容是“ABCD”,而Text2中的内容是“VB programming”。
转载请注明原文地址:https://kaotiyun.com/show/Torp777K
0

最新回复(0)