Home > Back-end >  Questions about adoQuery shut down
Questions about adoQuery shut down

Time:09-24

Consult everybody a great god a question:
Use ADOQuery link above applies under the operating system Delphi XE7 MS SQL Server2005 database, the database of data during normal operation, but when the delete all the data (into an empty set), after adoquery1 again. Close, cleare, SQL. TXT='XXXX', open times wrong, wrong location:
Procedure TDataSet. Close;
The begin
Active:=False;
end;
I checked on the net, some to ado patch, but I this is not the old version of Delphi XE7, excuse me, how to solve,

Not much, please forgive me!

CodePudding user response:

What is an error prompt
Is a patch,

Can't find the patch, use the new version RAD10

CodePudding user response:

Procedure TDataSet. Close;
The begin
Active:=False;
end;
Is this your code, or Delph library code,

CodePudding user response:

refer to the second floor lyhoo163 response:
procedure TDataSet. Close;
The begin
Active:=False;
end;
Is this your code, or Delph library code,



F9 to run the program, an error, turn to the Delphi source code itself,

CodePudding user response:

It has the certain difficulty, this is the Delphi internal code, there is an error,
Active:=False; Should be specified DataSet, the error could be designated object, a closed upper object error, fault is difficult to eliminate the sample,

CodePudding user response:

You this is in the closed when they make a mistake, if there is no open or delete SQL statement executed?
Should be writing the code yourself, stick to delete part of the code out look,

CodePudding user response:

Only when active=true can open

CodePudding user response:

refer to 6th floor qhmcxlzy response:
when only the active=true can open

Active=true and open the equivalent equivalent

CodePudding user response:

Close the query process directly with close
The default for you ready exception mechanism

AdoQuery. Close;
  • Related