注册 登录
编程论坛 PowerBuilder

关于数据窗口的问题

pbbaichi000 发布于 2007-05-01 09:41, 934 次点击
   怎样在一个窗口的数据窗口中查询出来的数据显示到另外一个窗口的数据窗口中!
1 回复
#2
路過2007-05-04 08:36
在查询窗口中的doubleclicked事件中用CloseWithReturn ( windowname, returnvalue )函數返回到另外一个窗口
在另外一个窗口中定義一個ue_query事件,接收數據(message.stringparm )。
例:
open(w_qdept)
string ls_dept_no
ls_dept_no = message.stringparm
if not isnull(ls_dept_no) or len(trim(ls_dept_no))> 0 then
this.retrieve(ls_dept_no)
this.setfocus()
elseif isnull(ls_dept_no) or len(trim(ls_dept_no)) =0 then
return
end if
1