读书人

封存按钮的代码如下

发布时间: 2013-10-10 14:14:51 作者: rapoo

保存按钮的代码如下
integer rtn
if this.text = "保存" then
rtn = dw_1.update()
if rtn = 1 then
COMMIT USING SQLCA
else
ROLLBACK USING SQLCA
end if
parent.title = parent.tag
end if
系统提示有四个语法错误,明明和书上写的一样,怎么会有错误
[解决办法]

引用:
integer rtn
if this.text = "保存" then
rtn = dw_1.update()
if rtn = 1 then
COMMIT USING SQLCA
else
ROLLBACK USING SQLCA
end if
parent.title = parent.tag
end if
系统提示有四个语法错误,明明和书上写的一样,怎么会有错误


integer rtn
if this.text = "保存" then
rtn = dw_1.update()
if rtn = 1 then
COMMIT USING SQLCA;
else
ROLLBACK USING SQLCA;
end if
parent.title = parent.tag
end if

//sql语句后要加;

读书人网 >PB

热点推荐