谁对复合窗口熟悉?
在窗口open事件中:
String ls_ysry
datawindowchild dwc
if dw_1.getchild('d_report', dwc)<>1 then
messagebox("错误!","子数据窗口错误",stopsign!,ok!)
return
end if
dwc.settransobject(sqlca)
dwc.retrieve(gs_hc)
dw_1.settransobject(sqlca)
dw_1.retrieve(gs_hc)
declare yb_name1 cursor for select name_1 from b_bg_2 where id_hc=:gs_hc;//航次
open yb_name1;
fetch yb_name1 into :ls_ysry;
if isnull(ls_ysry) then continue
dw_1.object.dwc.object.t_20.text=ls_ysry//取复合表中的b_bg_2中name_1
运行到上一句,程序出现错误:name not found accessing external object property dwc at line 49 in open event of object report_main。我已经想了好几天了,没有解决,怎么办呢?