程序出错了,但我不知道那里错了。。。。。哭ing
...//用ADOQuery1打开表cookies_xhdz
dm1.ADOQuery1.SQL.Add('select * from cookies_xhdz where register =''1''');
dm1.ADOQuery1.open;
dm1.ADOQuery1.Edit;
...
i:=0;
//读取cookies_xhdz表
while i<dm1.ADOQuery1.RecordCount do
begin
....//乱七八糟的一些处理
dm1.ADOQuery1.Next;//提示我这里出错,“dataset not in edit or insert mode”
i:=i+1;
end; //while
dm1.ADOQuery1.Post;
我昨天找了一个晚上也没找出什么错误,谁能帮帮我?