哪位高手讲一讲dw_1.update(true,false)的真实含义!!!

tolixiaohui 2004-08-07 05:24:23
第二个参数的含义是什么?
什么是resetflag?
实际用的时候做什么用?


dwcontrol A reference to a DataWindow control, DataStore, or child DataWindow.
accept
(optional) A boolean value specifying whether the DataWindow control or DataStore should automatically perform an AcceptText prior to performing the update:?TRUE ?(Default) Perform AcceptText. The update is canceled if the data fails validation.?FALSE ?Do not perform AcceptText.
resetflag
(optional) A boolean value specifying whether dwcontrol should automatically reset the update flags:?TRUE ?(Default) Reset the flags.?FALSE ?Do not reset the flags.
...全文
335 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
10975037 2004-08-08
  • 打赏
  • 举报
回复
1、你修改一个表中的数据可能影响其他的几个表中的数据的改动,其他的几个表要用dw显示其数据,所以要多个窗口更新。
2、是不是设置数据缓冲区数据的标志?
cxwsoftware 2004-08-08
  • 打赏
  • 举报
回复
楼上的说得很清楚了呀!
tolixiaohui 2004-08-08
  • 打赏
  • 举报
回复
to annyzgf() :
你所说的 多个窗口更新是什么意思呢?
resetflag到底是什么含意?
annyzgf 2004-08-08
  • 打赏
  • 举报
回复
第一个参数表示是否自动执行accepttext()函数,
第二参数表示执行完update()后,是否将数据窗口中各记录的修改标志复位,
一般当多个数据窗口更新时,为FALSE ,当都执行成功,再用resetupdate()复位更新标志,
其它时候用true就行了
zanglinfeng 2004-08-08
  • 打赏
  • 举报
回复
1 accepttext()
2 retrieve()
差不多这个意思了!
tolixiaohui 2004-08-08
  • 打赏
  • 举报
回复
我认为:
1 accepttext()
2 retrieve()
不知道这样理解正确不?
alwaystar 2004-08-07
  • 打赏
  • 举报
回复
第一个参数是是否进行有效校验,第二个参数是是否更新后重置数据窗口状态
ice2water 2004-08-07
  • 打赏
  • 举报
回复
窗口中的数据被增加、修改或删除后会设置不同标志,Reset the flags,表示修改这些标志,相当于重新做了retrieve(),

1,076

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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