Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a class' parent method from another object's met
Message
From
01/06/1999 09:01:07
 
 
To
01/06/1999 01:22:43
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00224571
Message ID:
00224873
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform