在查询窗口中的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