这些我也试过了啊,我要是打开个新窗口的话,传值就没有问题,但是在原窗口里就是传不了。
我的脚本:
我设一个函数f_str_advice 目的是将窗口w_conclusion里的一个字段传到另个窗口w_repor的 sle_advice控件里(多行编辑框)函数定义如下:
if isvalid(w_report) then
w_report.sle_advice.text = " " + str_advice //str_advcie全局变量
else
messagebox("提示!","窗体还没打开!")
end if
在窗口w_conclusion中cb_ok的单击事件中调用该函数
if cbx_1.checked=true then str_advice = str_advice + cbx_1.text
if cbx_2.checked=true then str_advice=str_advice+cbx_2.text
close(w_conclusion)
f_str_advice()
我一个运行它就提示:窗体还没打开!如何解决?