Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding class heirachy
Message
De
25/02/1998 23:14:56
 
 
À
25/02/1998 21:51:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00080957
Message ID:
00081274
Vues:
30
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform