delphi 中出现cannot perform this operation on a closed dataset问
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/05/16 08:39:13
delphi 中出现cannot perform this operation on a closed dataset问题
procedure Tfrm_bmxx.FormShow(Sender:TObject);
begin
data1.ADOQYbmxx.Active:=false;
with data1.ADOQYbmxx do
begin
close;
sql.Clear;
sql.text := 'select * from 部门表'; // sql.Add('select * from 部门表');
open;
data1.ADOQYbmxx.Active:=true;
if data1.ADOQYbmxx.FieldByName('部门编号').Value= null then
begin
application.MessageBox('数据库中没有数据,请添加数据','提示',64);
speedbutton1.Click;
end;
end;
end;
每次运行时点击dbgrid时出现此错误,且显示不了数据库里的信息.
procedure Tfrm_bmxx.FormShow(Sender:TObject);
begin
data1.ADOQYbmxx.Active:=false;
with data1.ADOQYbmxx do
begin
close;
sql.Clear;
sql.text := 'select * from 部门表'; // sql.Add('select * from 部门表');
open;
data1.ADOQYbmxx.Active:=true;
if data1.ADOQYbmxx.FieldByName('部门编号').Value= null then
begin
application.MessageBox('数据库中没有数据,请添加数据','提示',64);
speedbutton1.Click;
end;
end;
end;
每次运行时点击dbgrid时出现此错误,且显示不了数据库里的信息.
建议在dbgrid的onclick事件里打断点跟踪一下
或者在调试模式下运行,看看出错时代码停在哪
你这段代码虽然罗嗦,但是执行没有问题,而且这段代码是在窗体create完成后显示的时候执行的,不是点击dbgrid的时候执行的
或者在调试模式下运行,看看出错时代码停在哪
你这段代码虽然罗嗦,但是执行没有问题,而且这段代码是在窗体create完成后显示的时候执行的,不是点击dbgrid的时候执行的
delphi 中出现cannot perform this operation on a closed dataset问
dsZQ:cannot perform this operation on a closed dataset
cannot perform this operation on a closed dataset.
ADOTable1:cannot perform this operation on a closed dataset
传奇服务器cannot perform this operation on a closed dataset
cannot perform this operation on a closed dataset英文怎么读?是什么意思
考勤软件上提示SchClass: Cannot perform this operation on a closed d
You do not have enough money to perform this operation!
you do not have permissions to perform this operation是什么意思?
Only( )perform that operation.
N81出现Not enough memory to perform operation Delete some data
英语翻译1.take in 2.have/do/perform an operation on 3.burn sth t