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.