PB中update(true,flase)的两个参数的用途

来源:百度知道 编辑:UC知道 时间:2024/05/31 13:08:38
PB中update(true,flase)的两个参数的用途
尤其是第二个参数的作用。下面的是帮助文件的例子,看的不是很懂。
This example connects to the database, specifies a transaction object for the DataWindow control with SetTransObject, and then updates the database with the changes made in dw_employee. The update resets the status flags but does not perform AcceptText before updating the database:

CONNECT USING SQLCA;

dw_employee.SetTransObject(SQLCA)

... // Some processing

dw_Employee.Update(FALSE, TRUE)
”更新标志“ 有什么用?对后面的数据有什么影响?

dwcontrol.update(false,true)
前面的那个参数是指定数据窗口控件在更新数据库之前是否自动执行accepttext()的功能把编辑框中的内容放置到缓冲区中,true为执行accepttext(),false为不执行。
后面的那个参数指明更新数据库后是否自动复位更新标志。true为复位更新标志,false为不复位更新标志