M
Maxcjh
Unregistered / Unconfirmed
GUEST, unregistred user!
[?] adocom := TADOQuery.Create(nil);
adocom.connection := dmMain.connMain;
with adocom do
begin
close;
sql.text := sqlstr;
open; //execsql;
if eof then Result := 0
else Result := recordcount;
[blue]free; //这一行报错!
[/blue]end;
[purple]报如下错误:
either Eof or Bof is true,or the current record has been deleted!
请大家指教![/purple]
adocom.connection := dmMain.connMain;
with adocom do
begin
close;
sql.text := sqlstr;
open; //execsql;
if eof then Result := 0
else Result := recordcount;
[blue]free; //这一行报错!
[/blue]end;
[purple]报如下错误:
either Eof or Bof is true,or the current record has been deleted!
请大家指教![/purple]