Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running both the class method code and the userdefined
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00041688
Message ID:
00041801
Vues:
33
>Any advise?

Bela,

I see you got some direction from others, let's just take a moment to fill in the blanks a little.

In OOP we program "by exception". That means that as we subclass a control and we add code in the new class methods we are overriding the code in the parent classes. If we want the parent class code to run we must call it from the subclass.

Now, while it is possible to call code from the grand parent that is not something that should be done. The reason is that if you want to run the grandparent's code and not the parent's then your class is a subclass of ther grandparent and not the parent and you should build the the class that way in the first place.

On to whay you can't see the code from the class in your object, well whne you click on a command button it looks pushed down and wehn yo0u let go it looks popped up, have you seen the code that does that? Do you care? Why not? Becasue it works, if it didn't work you would get after MS to fix their code. The same is true of your classes. If you use one of your classes and it works you shouldn't care about the code that does it, and if it doesn;t work then you need to go to the class and fix it so it does work.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform