数据窗口的数据保存(pb)~~!!
string f
dw_1.scrolltorow(dw_1.rowcount())
f = dw_1.getitemstring(dw_1.getrow(),"数据录入表_编号")
------提示该行错误,
SQL下的表:数据录入表,主键:编号.
[Application terminated.
Error: Invalid DataWindow row/column specified at line 3 in clicked event of object cb_4 of datainput_w.]
insert namebook(编号)
values(:f);
if update(dw_1) = 1 then
dw_1.resetupdate()
commit;
messagebox("成功","数据已成功保存!")
else
rollback;
messagebox("失败","数据保存失败!")
end if