delphi出现Dataset not in edit or insert mode的问题如下代码procedure TStock.Button2Click(Sender: TObject);beginAdoTable2.Edit;AdoTable2.FieldValues['库存数'] := AdoTable2.FieldValues['库存数']+AdoTable1.FieldValues['进货数量'];AdoTa

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/26 14:31:32
delphi出现Dataset not in edit or insert mode的问题如下代码procedure TStock.Button2Click(Sender: TObject);beginAdoTable2.Edit;AdoTable2.FieldValues['库存数'] := AdoTable2.FieldValues['库存数']+AdoTable1.FieldValues['进货数量'];AdoTa
xMo@LSSTpmEԃ?F]݂*!AQ$jB$@ c kP.<3kӟwװh-&\ d h0=yWmqǓӗ~@pP 9dvƕ*j.9V1YpiӲ=r- {B`41~*޵gmUUWH*J7Rbi߮jfB(**!) eJ5C9{KAzIz :?㣜^v'xMwF5ƒ쨓d}Vtf"rxc{gKA -ƬUjK)jrnl8}p; PoqJ8&!_&iI7J?o?odd[-g2+OUI3.oNUrID܀~֍dMQ~3 [D &

delphi出现Dataset not in edit or insert mode的问题如下代码procedure TStock.Button2Click(Sender: TObject);beginAdoTable2.Edit;AdoTable2.FieldValues['库存数'] := AdoTable2.FieldValues['库存数']+AdoTable1.FieldValues['进货数量'];AdoTa
delphi出现Dataset not in edit or insert mode的问题
如下代码
procedure TStock.Button2Click(Sender: TObject);
begin
AdoTable2.Edit;
AdoTable2.FieldValues['库存数'] := AdoTable2.FieldValues['库存数']+AdoTable1.FieldValues['进货数量'];
AdoTable2.Post;
AdoTable1.Delete;
AdoTable1.Post;
end;
这段代码对应的退货按钮一点击就会出现错误project project1.exe
raised exception class EDatabaseError with message'ADOTable1:Dataset not in edit or insert mode'.
Process stopped.Use Step or Run to continue.”
是什么问题?

delphi出现Dataset not in edit or insert mode的问题如下代码procedure TStock.Button2Click(Sender: TObject);beginAdoTable2.Edit;AdoTable2.FieldValues['库存数'] := AdoTable2.FieldValues['库存数']+AdoTable1.FieldValues['进货数量'];AdoTa
AdoTable1.Delete;
AdoTable1.Post; //这里有问题,不要这句
TDataSet在Delete的时候都是不需要Post的

delphi出现Dataset not in edit or insert mode的问题如下代码procedure TStock.Button2Click(Sender: TObject);beginAdoTable2.Edit;AdoTable2.FieldValues['库存数'] := AdoTable2.FieldValues['库存数']+AdoTable1.FieldValues['进货数量'];AdoTa DataSet delphi 中出现cannot perform this operation on a closed dataset问题procedure Tfrm_bmxx.FormShow(Sender:TObject);begindata1.ADOQYbmxx.Active:=false;with data1.ADOQYbmxx dobeginclose;sql.Clear;sql.text := 'select * from 部门表'; // sql.Add('sele delphi在执行adoquery.post时提示dataset not in edit or insert mode错误代码如下: datasource1.DataSet:=QB; QB.Connection:=zhuchuti.conn; QB.Close; QB.SQL.Clear; Qb.SQL.Text:='select * from gds_discount where goodscode='''+goodsco dataset是什么意思 急 ads-bas:dataset not in edit or in sert mode 还有connection closed gracefully. 急 ads-bas:dataset not in edit or in sert mode 还有connection closed gracefully. delphi用线程时出现错误canvas does not allow draw把一段通讯程序放到线程中,运行一段时间(可能十几分钟,也可能十几个小时)就会报错”canvas does not allow draw”,但按F7后,程序没有停止,线程已经 delphi中dimens[1]. Erabskate error.Valueout of bounds.Cannot perfoem this operation on a clased dataset.每次打开财务软件就出现这两句.(自从税控升级已后) dsZQ:cannot perform this operation on a closed dataset使用的是ACCESS数据库,打开其中一个表是出现这样的提示,其他表都没问题, strongly typed dataset 什么意思 dataset.Tables[0]方法是什么意思 开机出现file not 重装系统 出现file not 快播老出现404 Not delphi group project 怎么用? Delphi中的Assigned和nil