回 帖 发 新 帖 刷新版面

主题:如何在两个窗体之间传递数据?

一个窗体上的数据需要在另一个窗体上使用,求解决方法。

回复列表 (共5个回复)

沙发

变量用 Public 声明,在窗体中声明或在模块中声明都行

板凳


在标准模块里声明可以,但是在窗体模块用Public声明还是无法将数据传递过去,求解释。

3 楼

例如:A窗体a变量用Public声明,要将a变量传递到B窗体的b变量,那么在B窗体可以这样:
b=A.a

如果B窗体b变量用Public声明,要将A窗体的a变量传递到B窗体的b变量,那么在A窗体可以这样:
B.b=a

4 楼

其实还可以利用某些控件的tag属性来传递(控件都相当于用Public声明的),例如:a=B.控件名.Tag

5 楼

Major League Baseball "45" number. So then [url=http://www.cheapjordanforsale.us/air-jordan-4-retro-c-4.html]retro jordan 4[/url] shoes followed by No. 45 embroidered white line no.3, 5000 dollar fines dispute In the second game of the Eastern Conference [url=http://www.cheapjordanforsale.us/air-jordan-6-retro-c-6.html]retro jordan 6[/url] semifinals, the Father re-donned the jersey number "23", scored 38 points, but the foot wear or [url=http://www.cheapjordanforsale.us/air-jordan-7-retro-c-8.html]retro jordan 7[/url] embroidered with "45" was too black and white [url=http://www.cheapjordanforsale.us/air-jordan-9-retro-c-9.html]retro jordan 9[/url], then the Bulls away combat, black and white home color [url=http://www.cheapjordanforsale.us/air-jordan-10-retro-c-10.html]retro jordan 10[/url] and away the color does not match, so the Father was also fined $ 5,000 per game, the Father suddenly re-wear jersey No. 23, again by a [url=http://www.cheapjordanforsale.us/air-jordan-11-retro-c-11.html]retro jordan 11[/url] fine of $ 25,000 per game. concord directly translated into "Concord grapes", varieties of Americas grapes, [url=http://www.cheapjordanforsale.us/air-jordan-11-retro-c-11.html]jordan 11 Concord[/url] crystal outsole echoes the color with purple soles, while the color name from the soles of purple the no.5, hot on sale very terrible [url=http://www.cheapjordanforsale.us/air-jordan-12-retro-c-12.html]retro jordan 12[/url] finally listed, each Offer shops outside there are people waiting in line, some people even crushed glass [url=http://www.cheapjordanforsale.us/air-jordan-13-retro-c-13.html]retro jordan 13[/url] doors across the security downtown into the store to try to steal these shoes, in order to buy it at all costs, its all crazy!

我来回复

您尚未登录,请登录后再回复。点此登录或注册