
Problems when using Err.Raise in a public method of an activex
Your errors are being raised but you've told VB to On Error Resume Next...
think about it. You'll have to do an On Error Goto 0 before raising the
error if you expect it to get anywhere.
Hi
I am having trouble when using Err.Raise in a public method of an
activex.
I am using "On Error Resume Next" to perform inline error checking.
When
an error occurs I am raising an error with :
Err.Raise vbObjectError+ lErrorCode,"MyModule","MyFunction"
The amazing thing is that the client (an ASP page or a vb client) that
creates the object and invokes my method never receives a valid Err
object.
In fact it is empty.
If I replace the "On Error Resume Next" with "On Error Goto
ErrorHandler"
and if I raise an error with the same manner it will work !!!!
What I am doing wrong ?
Thanks for your help