当前位置: 代码迷 >> PB >> 帮小弟我看下下面的这段代码:很菜的有关问题
  详细解决方案

帮小弟我看下下面的这段代码:很菜的有关问题

热度:22   发布时间:2016-04-29 08:58:44.0
帮我看下下面的这段代码:很菜的问题。
string auid //获取自动编号
datetime current_date
current_date=datetime(today())

messagebox("审核时间",string(current_date))
messagebox("审核人员",ls_opername)
autoid=tab_1.tabpage_1.dw_2.getitemstring(tab_1.tabpage_1.dw_2.getrow(),"autoid")
messagebox("自动编号",autoid)

update w_input set sh_person=:ls_opername,sh_date=:current_date
where autoid=:auid using sqlca;
if sqlca.sqlcode=0 then
messagebox("成功","审核成功")
commit using sqlca;
else
messagebox("失败","审核失败")
rollback using sqlca;
end if
这段代码中的三个messagebox都能正常显示,最后也显示审核成功了,但是表里没更新,请大侠们指点。

------解决方案--------------------
auid =''
  相关解决方案