我在form1中声明一个public的变量,在form2中返回它的值为什么不对阿?
form1中:
public q as string
Public Sub Command1_Click()
...
msgbox q返回值为333form2中:
msgbox q
为什么返回为true ?怎么让他返回form1中的值啊?
form1中:
public q as string
Public Sub Command1_Click()
...
msgbox q返回值为333form2中:
msgbox q
为什么返回为true ?怎么让他返回form1中的值啊?
否则在form2中,怎么调用
msgbox form1.q如果其他地方没有定义q在form2向你那样调用会出错