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 10:37:44
 
 
To
01/06/1999 09:01:07
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00224571
Message ID:
00224924
Views:
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

Well, Bob, looks like we're going around in circles here. I'm still not sure what you're saying. What's wrong with having two calls to the DelMethod() with different parameters. The reason I like doing it this way is because all the functionality is in one method. I dunno ... it makes sense to me. < g >

Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform