Z zhaozhe Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-04 #1 在mediaplayer中点播放,如果不成功就抱错,怎样把错误对话框去掉,让它什么也不提示啊?它没有ErrorCode参数,怎样定义一个消息,把错误屏蔽掉? 我用try也不行的 请教各位
T Tassadar Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-04 #2 用application.onException 也可以用TApplicationEvents。OnException事件,方便一点 把错误提示都屏蔽掉
Z zhaozhe Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-04 #3 TApplicationEvents。OnException事件怎样写啊? 谢谢!
L LeeChange Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-04 #4 加一个ApplicationEvents控件到窗体上,写他的OnException就行了.
S Sterntaler Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-04 #5 这样? private { Private declarations } procedure AppException(Sender: TObject; E:Exception); procedure TForm1.AppException(Sender: TObject; E: Exception); begin case E of { ... } end; end; procedure TForm1.FormCreate(Sender: TObject);//此处在FORM建立的时候。 begin Application.OnException := AppException; end;
这样? private { Private declarations } procedure AppException(Sender: TObject; E:Exception); procedure TForm1.AppException(Sender: TObject; E: Exception); begin case E of { ... } end; end; procedure TForm1.FormCreate(Sender: TObject);//此处在FORM建立的时候。 begin Application.OnException := AppException; end;
S Sterntaler Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-04 #6 LeeChange: ApplicationEvents控件在哪儿?