General information
Category:
Coding, syntax & commands
I don't really understand it. You need to have at least one line of code anyway, isn't it? In this case, you may forget to put that line also... Probably there's something I don't get here.
Vlad
>If I put the above code in txtBase.CustomError and thoroughly debug it, then forget to put the dodefault() in txtSubClass.CustomError, I wouldn't notice that error()=1 or 2 weren't being tested for. I probably wouldn't remember to debug txtSubClass.CustomError for the error()=1 or 2.
>
>I would much rather have a separate class that 1st looked in txtSubClass.CustomError and if the error wasn't handled then look in txtBase.CustomError. That way I don't have to remember to put in dodefault(). I have a hard enough time remembering it in all the other methods (init, show, etc.), but at least in them I can see that something isn't being done when I debug. In an error handler, I wouldn't notice that an error wasn't being checked for.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only