请问以下代码有何错误????

waterhua waterhua 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
这是一个向子数据窗口添加数据的代码
if lower(dw_1.getcolumnname())="年" then
datawindowchild child
integer code
code=dw_1.getchild("年",child)
if code=-1 then
messagebox("","")
else
child.settransobject(sqlca)
child.retrieve()
boolean isnotin
long ll_rows
ll_rows=child.rowcount()
do while ll_rows>0
if child.getitemstring(ll_rows,"年数")<>dw_1.gettext() then
isnotin=true
// ll_rows
continue
else
isnotin=false
exit
end if
loop
if isnotin=true then
child.insertrow(0)
child.setitem(child.rowcount(),"年数",dw_1.gettext())
end if
if child.update()=1 then
commit;
else
rollback;
end if
end if
end if
...全文

相关推荐

评论 7
收藏 已收藏
分享
返回顶部
waterhua
非技术版 401 成员 11,494 内容