传递数据的问题

gold112y 2006-11-07 10:53:53
想把当前窗口中的datawindow的数据复制到另一窗口的datawindow中
如:
dw_1.rowsmove(dw_1.getrow(),dw_1.getrow(),primary!,w_temp.dw_2,1,primary!)
w_temp.dw_2.setitemstatus(1,0,primary!,newmodified!)

提示错误,应怎么写?
...全文
215 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
woods 2006-11-07
  • 打赏
  • 举报
回复
试试 bbdx2523(模二战士) 的方法把!记住要在第二个窗体操作,也就是要接受数据的窗口
gold112y 2006-11-07
  • 打赏
  • 举报
回复
application terminated
error:null object reference
bbdx2523 2006-11-07
  • 打赏
  • 举报
回复
在一个窗口中操作另一个窗口的对象,要先在窗口1中声明一个window 变量,再把另一个窗口通过messsage对象传递过来,然后关联到window变量上,再操作。
你现在是对窗口2的dw进行操作,建议把dw_2引用过来就好了。
woods 2006-11-07
  • 打赏
  • 举报
回复
提示什么错误?
还没试过在两个窗口中移数据,在同一个窗口中没问题
wuyanke 2006-11-07
  • 打赏
  • 举报
回复
dw_1.RowsCopy(dw_1.GetRow(), &

dw_1.RowCount(), Primary!, dw_2, 1, Primary!)
kingkingkingking 2006-11-07
  • 打赏
  • 举报
回复
dwcontrol The name of a DataWindow control, DataStore, or child DataWindow from which you want to move rows
startrow The number of the first row you want to move
endrow The number of the last row you want to move
movebuffer A value of the dwBuffer enumerated data type (PowerBuilder) or an integer (Web ActiveX and Java) identifying the DataWindow buffer from which you want to move the rowsFor a list of valid values, see DWBuffer
targetdw The name of the DataWindow control or DataStore to which you want to move the rows. Targetdw can be the same DataWindow control (or DataStore) or a different DataWindow control (or DataStore), but it cannot be a child DataWindow
beforerow The number of the row before which you want to insert the moved rows. To insert after the last row, use any value that is greater than the number of existing rows
targetbuffer A value of the dwBuffer enumerated data type (PowerBuilder) or an integer (Web ActiveX and Java) identifying the target buffer for the rowsFor a list of valid values, see DWBuffer
gold112y 2006-11-07
  • 打赏
  • 举报
回复
怎么写

740

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 脚本语言
社区管理员
  • 脚本语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧