当前位置: 代码迷 >> PB >> 保留按钮的代码如下
  详细解决方案

保留按钮的代码如下

热度:54   发布时间:2016-04-29 06:19:36.0
保存按钮的代码如下
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语句后要加;
  相关解决方案