一个简单的问题:Query.close
环境:Win98+Delphi5+SQL Server2000
delphi代码:
...
Query1.close;
Query1.Sql.clear;
Query1.Sql.add('select * from table');
Query1。Open;
if not Query1.ISEmpt then
Query1.first;
while not Query1.Eof do
begin
dosomething;
...
Next ;
end;
Query1.Close;
...
在Query.close时,delphi提示错误:
Enther BOF of EOF is True,or the Current record been deleted,Requested option requires a current record.
delphi5已经安装ADO补丁,
本程序在数据库为Sql Server7.0 中并无错误。
请诸位大侠指教。