Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dodefault() in custom method
Message
De
07/11/2001 16:42:49
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00578747
Message ID:
00578757
Vues:
18
>>Hi everyone,
>>
>>I've spent about an hour debugging some problem and want to share my findings in case, somebody would be in this trouble. I have a class btcc_group, which is based on another class btcc_container. In the btcc_group class I created a method called btcc_ListSelect. In this method I placed some code and this code ended by dodefault(). This dodefault() was a problem, since I don't have this method in the parent class. Spent a long time working on this problem, since custom Error Handler interfered the process of debugging.
>>
>>Watch out! :)
>
>Nadya;
>
>Interesting! Yes, I can see why there would be a problem. I have placed code before a DoDefault() in the child object required by the parent, and then additional code needed by the child after the DoDefault().
>
>Too bad we cannot call This.Child.MyMethod() just before the DoDefault() :)
>
>Anyway, it is always good to hear what someone has found in case we get bitten in the future! :)

That's why it's usually a good idea to add the methods as blank methods in the upper class, or at least as high as it makes sense. The blank method is just to declare the interface, and have some comments on its purpose.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform