ADO database connection, data update, etc.,
Other code
Except,
On E: the Exception do begin
end;
end;
I mean now on E: the Exception is too thick, it is best to locate to specific exceptions, such as overtime, or SQL statement has a problem, it can be targeted for treatment, so I need some of ADO database Exception class, trouble under the warrior ADO database Exception class tell me, looking for half a day
CodePudding user response:
No, this is no one answer?CodePudding user response:
I don't really understand, but when you use the D7, you in the class, such as the TADOQUERY press CTRL point with the mouse to click again, can find the ADO relevant source, and the definition of EXCETION, you can try to solve your problemCodePudding user response:
ADO to connect to the database by SQL statements can return to SQL connection error,CodePudding user response:
I want to capture is abnormalCodePudding user response:
On E: the Exception doShowmessage (' exception class name: + lassName of e.c. with our fabrication:
+ # 13 # 10 + 'abnormal information: + E.M essage);
This kind of? Or refer to the following web page:
http://www.cnblogs.com/spider518/archive/2010/12/30/1921298.html
CodePudding user response: