首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

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

2012-04-11 
帮我看下下面的这段代码:很菜的问题。string auid//获取自动编号datetime current_datecurrent_datedateti

帮我看下下面的这段代码:很菜的问题。
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 =''

热点排行