使用对象将值从form2传递给form1 [英] Passing values from form2 to form1 using objects

查看:111
本文介绍了使用对象将值从form2传递给form1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它不再是在两个形式之间传递变量的问题它只是这个


form1仍然打开


i做一些更改form 2中的var的动作


我希望在完成这些更改后立即将新号码发送到form1


怎么能我这样做没有打开一个新的form1并将var发送到唯一的form1开放

解决方案


it'在两个形式之间传递变量不再是问题只是这个


form1仍然打开


i做一些改变变量的动作在form2


我希望在完成这些更改后立即将新号码发送到form1


如何在不打开的情况下这样做一个新的form1并将var发送到唯一一个打开的form1



请详细解释你的问题



请详细解释你的问题



问题是我不知道怎么在form1中写一些东西而我在form2中

没有打开一个新的form1



问题是我不知道如何在form1中写一些东西im in form2

没有打开新的form1



访问表格你必须要创建对象。

尝试此代码

为此添加两个表单和一个模块并尝试此代码

展开 | 选择 | 换行 | 行号


it''s no longer a problem passing variables between two form its just this

form1 is still open

i do a few actions that change a var in form2

and i want the new number to be send to form1 immediatly after those changes are done

how can i do so without opening a new form1 and sending the var into the only form1 that is open

解决方案

it''s no longer a problem passing variables between two form its just this

form1 is still open

i do a few actions that change a var in form2

and i want the new number to be send to form1 immediatly after those changes are done

how can i do so without opening a new form1 and sending the var into the only form1 that is open

pls explain thy problem in detail


pls explain thy problem in detail

the problem is that i dont know how to write somthing in form1 while im in form2
without opening a new form1


the problem is that i dont know how to write somthing in form1 while im in form2
without opening a new form1

to access the form u must have to create the object.
try this code
for that add two forms and one module and try this code

Expand|Select|Wrap|Line Numbers


这篇关于使用对象将值从form2传递给form1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆