当前位置: 代码迷 >> PB >> 帮小弟我分析一上上面代码的意思
  详细解决方案

帮小弟我分析一上上面代码的意思

热度:25   发布时间:2016-04-29 07:06:45.0
帮我分析一下下面代码的意思
1 trigger.clicked(0,0,0)
2 dw_1.update(true,false)  true,faklse 代表什么意思

------解决方案--------------------
1 trigger.clicked(0,0,0)
??
2 dw_1.update(true,false) true,faklse 代表什么意思
函数原型:
integer dwcontrol.Update ( { boolean accept {, boolean resetflag } } )
true代表在更新时自动调用AcceptText应用当前数据到主缓冲区,如果数据没有效验成功,更新将取消
false代表更新完成后不自动重置更新标志,也就是说不管更新成功还是失败了,都不会清空更新缓冲区,你仍然可以继续调用update函数,但一般在成功调用update函数之后都要手动的调用ResetUpdate函数将标志清空。

以下是PB Help原文:
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.
 
  相关解决方案