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/09/01 00:41:05
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.
xSMS@>.e8[p/xmIM0U> 8-jU*:m@6cv ݔ=8d}'(oL/l[{( VtL%UA2jVT4d aYF:ڥFo bX۳|$< qLI_ O DBwBDݡrǞA@#i@AW$ 1&"6DW@0S,1]#T45঴`_3p,Ë'am=oჱHcR$\?Fst GlJ/[|KQ/o?8,ۀ* ̦_lpc9]w@r8˜kY1d |HJ\qZu$Q9o.pO.pd@ObeGnD8Uӱ7.>8sb 3O [?{CvV?m{{&,k篷[+'Z(8b9K 4₈ Znl v#_a` mn8djh3,WeUv|3!Pghb{s]y&sUO yE^dQH|ֱ7 0, oLu?p;Z_‰y-&`,

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

收起