I would agree that it seems kludgey. Worked for a "genius" last gig and he used it and it was amazing to see it in action operate easily but my spidey sense said "yeah, no...I don't like it."
On 12/3/2019 11:10 AM, Jürgen Wondzinski wrote:
Sounds a little bit like "bad design", but if life demands such constructs....
You can always get the code from the upmost level by using the "QuatroDot" operator :: like class::MyMethod()
If you would need one in between, then you need to do some clever IF branching in the beginning of each level's code by providing a parameter when calling the method:
PROC MyMethod LPARAMETER lSkipIt IF lSkipIt RETURN DODEFAULT() ENDIF && regular code goes here
wOOdy
-----Ursprüngliche Nachricht----- Von: ProFox profox-bounces@leafe.com Im Auftrag von Paul Newton Gesendet: Dienstag, 3. Dezember 2019 17:00 An: 'profox@leafe.com' profox@leafe.com Betreff: Calling code in parent's parent class
Hi all Let's say that I have the following situation:
GreatGrandParent -> GrandParent -> Parent -> Class
In Class I want to bypass the code in Parent but call the code in either GrandParent OR GreatGrandParent.
Is this possible and, if so, how? Many thanks
Paul Newton
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]