关于错误处理的问题 谁能告诉我如何在vb中实现错误处理?哪位大侠给个公用函数,小弟急用感谢大家 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 on error gotoon error resume on error goto goto errorhand****errorhand:msgbox "****" 1.不给出错误描述:On Error Resume Next2.给出描述:On Error Goto ErrHandle...ErrHandle: Msgbox Err.Description 3.On Error Goto 0 private sub ** ()on error goto errhandle.....exit suberrhandle: select case err.number case * case * end selectend sub通常一个过程的完整错误处理都是这个模式 1.忽略错误:On Error Resume Next2.错误跳转:On Error Goto Err……ErrHandle: Msgbox Err.Description 1、忽略错误on error tesume nexton error goto 02、错误条转并报告错误on error goto ErrhandlerErrhandler: msgbox "" 请问有没有将ascii转成数字的函数? 谁有VB6生成QRCode二维码的免费控件? 请教:关于数据恢复的问题 哪里有用vb实现的md5算法?? 大家遇到过这样一个不爽小问题吗?在线等,谢谢! 如何从数组中删除一个元素? 请问制作发送手机短信的程序都需要哪些设备,如何建设开发环境? 请进 请教MDI窗体 如何在关掉子窗体的同时把mdi窗体关掉 怎样创建一个 Treeview 控件,我不要 VB自带的那个庞然大物啊! 如何可以修改这两个表的数据 能不在设计时自定义报表。
on error resume
****errorhand:
msgbox "****"
On Error Resume Next2.给出描述:
On Error Goto ErrHandle
.
.
.
ErrHandle:
Msgbox Err.Description 3.On Error Goto 0
.
.
.
..
exit sub
errhandle:
select case err.number
case *
case * end select
end sub
通常一个过程的完整错误处理都是这个模式
On Error Resume Next2.错误跳转:
On Error Goto Err
……
ErrHandle:
Msgbox Err.Description
on error tesume next
on error goto 0
2、错误条转并报告错误
on error goto ErrhandlerErrhandler:
msgbox ""