是否有VB6的错误编号列表?
问题描述:
我处理错误与是否有VB6的错误编号列表?
on error goto
语句,当错误处理被激活,我希望处理的错误是这样的......
If Err.Number = this Then
do_this
ElseIf Err.Number = that Then
do_that
Else
do_the_other
End If
要做到这一点,不过,依靠知道哪些错误会产生哪些数字。有没有这些地方的清单(我一直无法找到)?
答
这里是核心的Visual Basic 6.0语言错误:
Trappable Errors - Visual Basic for Applications Reference - Visual Studio 6.0
搜索 “可捕获的错误”,也产生这样的列表for VS 2008(即Office 2007中)和a list for an unspecified version dated 2006(所以一定要办2003年)。
答
召唤帮助(f1键),选择索引选项卡并输入'可捕获的错误'。
(假设你已经安装了VB6的帮助)
尝试此链接[http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=48434&lngWId=1](http://www。 pscode.com/vb/scripts/ShowCode.asp?txtCodeId=48434&lngWId=1) – Chromium 2010-12-08 11:13:16