我知道在下面的例子中应该使用Resume语句而不是Goto语句.
原文链接:https://www.f2er.com/vb/255631.htmlSub Method() On Error Goto ErrorHandler ... CleanUp: ... Exit Function ErrorHandler: Log error etc Err.Clear 'Is this line actually necessary?' Resume CleanUp 'SHOULD USE THIS' Goto CleanUp 'SHOULD NOT USE THIS' End Sub
我的问题是在执行两者有什么区别?