请问如何捕获特定异常信息(例如:query.execsql是否执行成功!)? var EJiteException = Class(Exception)...try...except raise EJiteException.Create(const AMsg: String; AErrorCode: Integer);end; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 try Query.ExecSql;except On E: Exception do begin // to show this exception's message or not // to judge the exception's type // or do anythingelse end;end; var EJiteException = Class(Exception)...try...except raise EJiteException.Create(const AMsg: String; AErrorCode: Integer);end; 狂人的也是这样 delphi2007以上版本编译出来的程序都需要.net环境才能运行吗 关于用QReport报表计算表达式的问题? 郁闷,想了好久都没有解决--如何把数据库里的字段有选择的写入XML文件 请教大家一个关于继承的问题。不难。 【急】怎样让一个子窗体总在最前?不同以往的。 TPageControl控件的Tab页头中怎么插入控件?在线等待,谢谢 菜鸟问题,高分!!!在线等待 请问如何让Visual Foxpro生成的.dbf文件作为数据源? 关于图形的问题! windows的字体难搞定 时间查询!!!!!! 說難也難,說易也易。怎樣訪問局域網內的電腦?
Query.ExecSql;
except
On E: Exception do
begin
// to show this exception's message or not
// to judge the exception's type
// or do anythingelse end;
end;
...
try
...
except
raise EJiteException.Create(const AMsg: String; AErrorCode: Integer);
end; 狂人的也是这样