保存按钮的代码如下

梦lv紫星 2013-10-07 04:35:17
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
系统提示有四个语法错误,明明和书上写的一样,怎么会有错误
...全文
207 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
梦lv紫星 2013-10-08
  • 打赏
  • 举报
回复
问题已解决,谢谢
WorldMobile 2013-10-07
  • 打赏
  • 举报
回复
引用 楼主 u012288653 的回复:
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语句后要加;

1,072

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧