|
|
导航: |
论坛 -> DELPHI技术
斑竹:liumazi,sephil |
|
作者: |
|
2004/4/14 11:11:26 |
标题: |
delphi 中数据库异常处理问题,(有点难)谢谢!~ |
浏览:1160 |
|
加入我的收藏 |
楼主: |
请问我这应该怎样做? program project1 uses forms, classes, dialogs, db,dbtables, unit1 in 'unit1.pas' {form1};
{创建一个tobject的派生类 twyclass}
type twyclass=class(tobject) public procedure myexeceptionhandler(sender:tobject;einstance:exception); end;
//procedure myexeceptionhandler(sender:tobject;einstance:exception); //它提示的错误是:exception 没有定义 ,我不知道怎么定义他,这一点程序是网上的,他是为了响应 onexcpetion 事件。
//如果我只用procedure myexeceptionhandler(sender:tobject); //它提示的错误是:unsatisfied forward or external declaration:"twyclass.myexeceptionhandler:"
我要怎样定义这个类和定义 exception 呢?
谢谢!~
----------------------------------------------
lsh |
作者: |
|
2004/4/14 12:30:54 |
1楼: |
的确!
----------------------------------------------
我来自农村广阔的田野我的每一个动作都很夸张http://waterstone.51r.com
|
作者: |
|
2004/4/14 12:58:47 |
2楼: |
在uses中加入SysUtils就可以用Exception了.
----------------------------------------------
-广袤璀璨的银河,永无止境的梦想(梦无止境游银河) 博客挂了……
|
|