我做的物资类付款模块,总是在报这个错误 代码如下 :
procedure THTXX.DataSetWZLFKBeforeDelete(DataSet: TDataSet);
var
queryFLOWID : Tquery;
begin
if Business.Forms.jsdialogs.QuestionBox('确定要删吗?这将导致流程数据一同删除!','确认',2)<>6
then begin
SysUtils.Abort;
end;
queryFLOWID:= TQuery.Create(self);
with queryFLOWID do
queryFLOWID.ConnectionString := 'DATABASEURL=Biz:SYSTEMSYSTEM.Database';
queryFLOWID.CommandText := 'delete from TFLOWID where TFLOWID.FID=:ID';
queryFLOWID.Params.ParamByName('ID').AsString :=DataSetWZLFK.FieldByName('ID').AsString;
queryFLOWID.Execute;
queryFLOWID.Free;
end;