saptechnique

Better late than never. - 郭富

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
在VB6中,可以使用如下语句处理程序错误,以避免程序突然中途退出。
1On Error goto errHandler:
2'Input your code here 
3Exit Sub
4
5errHandler:
6    MsgBox Err.Description, vbCritical, "Error: "
posted on 2008-04-08 08:21  guofu  阅读(711)  评论(0编辑  收藏  举报