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

admin2010-03-22  26

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

选项

答案VB programming

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

最新回复(0)