首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

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

2012-12-30 
帮我分析一下下面代码的意思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 代表什么意思

[解决办法]
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.
 

热点排行