Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    I agree with this. I am a .NET programmer who has had to move to VB6 to support a legacy system. I would normally use Exceptions for this, but there are no exceptions in VB6. Commented Dec 4, 2011 at 12:44
  • 3
    @w0051977 There are exceptions in VB6. Not in the .NET way, but still. When you say On Error GoTo, that is an exception handler, from within which you can examine your exception (Err object). You throw an exception by calling Err.Raise. Commented Dec 4, 2011 at 12:47
  • To add to GSerg's point, an error raised in VB, when calling in fron .NET code, can be trapped as a COMException. Commented Dec 5, 2011 at 9:20