# Re: 执行中错误讯息产生,该如何避免?

Posted by 尧哥 on September 08, 1998 at 08:07:10:

In Reply to: 执行中错误讯息产生,该如何避免? posted by 阿树 on September 08, 1998 at 03:22:00:

你可在"程序"开头宣告一boolean如下:

dim err as boolean
err=true
on error goto exit1:
'接下来是你的程式
'
'
'
'若无错误
err=flase
exit1:
if err then
msgbox "磁碟错误",,"讯息视窗"
end if

Follow Ups:

- Re: 执行中错误讯息产生,该如何避免? 阿树 17:20:44 9/08/98 (1)
  - Re: 执行中错误讯息产生,该如何避免? 尧哥 23:24:35 9/08/98 (0)