Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding class heirachy
Message
From
25/02/1998 23:14:56
 
 
To
25/02/1998 21:51:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00080957
Message ID:
00081274
Views:
29
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
Map
View

Click here to load this message in the networking platform