Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a class' parent method from another object's met
Message
De
01/06/1999 09:01:07
 
 
À
01/06/1999 01:22:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00224571
Message ID:
00224873
Vues:
19
>Thanks for the reply! I don't have Design Patterns, but I think you're advocating basically what I ended up doing anyway ...
>
>
>*-- MarkDeleted() method
>IF THISFORM.OtherObject.DelMethod('CheckIt')
>  DODEFAULT()
>  THISFORM.OtherObject.DelMethod('DidIt')
>ENDIF
>
>
>It works fine, and now that I think about it, it's not all that inelegant a solution.
>
>Bonnie

Nope... not what I am saying at all... What I am saying is, break the DelMethod into two methods... and one would call the other... So, when you call the method from the other form, it doesn't have the code in it that you don't want to execute, so you don't have to call the parent code from the other form.

BOb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform