PB更新报错:Database transation information not available call settrans or settransobjecDatabase transation information not available. call settrans or settransobjec更新代码是:if dw_1.update()=1 thencommit;else rollback;end iftab_1.

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/10 09:08:26
PB更新报错:Database transation information not available call settrans or settransobjecDatabase transation information not available. call settrans or settransobjec更新代码是:if dw_1.update()=1 thencommit;else rollback;end iftab_1.

PB更新报错:Database transation information not available call settrans or settransobjecDatabase transation information not available. call settrans or settransobjec更新代码是:if dw_1.update()=1 thencommit;else rollback;end iftab_1.
PB更新报错:Database transation information not available call settrans or settransobjec
Database transation information not available. call settrans or settransobjec
更新代码是:
if dw_1.update()=1 then
commit;
else
rollback;
end if
tab_1.tabpage_1.dw_1.retrieve()
return
打开窗口时添加了:
SQLCA.AutoCommit=true
数据窗口是由多个表拼接成的
里面不止一个主键
请问怎么解决?

PB更新报错:Database transation information not available call settrans or settransobjecDatabase transation information not available. call settrans or settransobjec更新代码是:if dw_1.update()=1 thencommit;else rollback;end iftab_1.
在该窗口所在的window中的open事件中写
dw_1.settransobject(sqlca)

具体:Database transaction information not available. Call SetTrans or 没有设置事务对象吧?记得数据窗口都要设置一下数据库事务对象,dw_1.set设定了 可能是两个表不能直接这么做吧 我直接取出每个位置的值用Insert语句好了。。。 问一下:如果想把数据库中money字符怎么在PB中操作?比如,取值? string str...

全部展开

具体:Database transaction information not available. Call SetTrans or 没有设置事务对象吧?记得数据窗口都要设置一下数据库事务对象,dw_1.set

收起