Many thanks to everybody who has replied - I had come across the :: operator many moons ago but had forgotten about it. Paul Newton
-----Original Message----- From: ProfoxTech profoxtech-bounces@leafe.com On Behalf Of Jürgen Wondzinski Sent: 03 December 2019 16:10 To: profoxtech@leafe.com Subject: AW: Calling code in parent's parent class
Sent by an external sender ------------------------------
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]