A Anne Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-05 #3 不行,拦不到错误. 我是这样做的. try adoconnection1.connected:=true; try adoquery1.open; ....... finally adoquery1.close; end; except adoconnection1.connected:=false; showmessage('have wrong'); end;
不行,拦不到错误. 我是这样做的. try adoconnection1.connected:=true; try adoquery1.open; ....... finally adoquery1.close; end; except adoconnection1.connected:=false; showmessage('have wrong'); end;
Z zhanggeye Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-06 #4 try 好象应是这样: adoconnection1.connected:=true; try adoquery1.open; ....... finally adoquery1.close; raise; end; except adoconnection1.connected:=false; showmessage('have wrong'); end;
try 好象应是这样: adoconnection1.connected:=true; try adoquery1.open; ....... finally adoquery1.close; raise; end; except adoconnection1.connected:=false; showmessage('have wrong'); end;
余 余六 Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-06 #5 同意zhanggeye的 Anne你前面把异常给吃掉了,后面自然无法触发
A Anne Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-06 #6 raise不行呀,不能放在哪个位置. 不过我改动了一下现在基本可以了.
A Anne Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-06 #8 zhanggeye,余六你们的oicq号是多少,我想以后和你们常交流.