Click to See Complete Forum and Search --> : Error catching


KfR
August 12th, 1999, 05:29 AM
A class method Toto call Err.Raise ... .
In my project, i have an object of this class and i call the Toto method :

on error Goto Label
Obj.Toto ...
[...]
Label:



When i call Toto, and when an error occurs, the execution continues, and there's no jump to my Label.
What's the solution ?

Thanks !

<KfR>

Chris Eastwood
August 12th, 1999, 06:11 AM
You don't mention if you are running this as an EXE or through the VB IDE. I suspect that you have the 'Break In Class Module' error handler switched on (see Tools->Options->General->Error Trapping).

If this isn't the case, then is it possible that an error handler elsewhere in the TOTO class is capturing the error and acting on it ?



Chris Eastwood

CodeGuru - the website for developers
http://www.codeguru.com/vb

KfR
August 12th, 1999, 07:44 AM
I was running my app through the VB IDE with 'Break In Class Module' error handler switched on ...
I switched it off ! And it works good !!

Thanks a lot !!
Regards.

<KfR>