AW: $O - inherited class variables
Rudolf Bargholz
rudolf at bargholz.ch
Thu Oct 21 08:24:23 UTC 2021
Hi Jean-Marc,
Ok, if you look at a sublass that has inherited variables, these are not shown in the notation tree:
Set reference lObjVarRef to $root.$libs.ONLINE.$classes.wSUBCLASS.$ivardefs
If you now perform the following:
Set reference lObjVarRef to $root.$libs.ONLINE.$classes.wSocass.$ivardefs.$add('mySuperClassVariableName',kItemref)
with the same name as that in the superclass, this will add a new variable to the subclass, and if you have a look at the subclass, it will be displayed as "inherited". You just have to make sure, all the parameters of the subclass instance variable are the same as those in the superclass.
Regards
Rudolf
-----Ursprüngliche Nachricht-----
Von: omnisdev-en <omnisdev-en-bounces at lists.omnis-dev.com> Im Auftrag von jmv
Gesendet: Donnerstag, 21. Oktober 2021 10:16
An: OmnisDev List - English <omnisdev-en at lists.omnis-dev.com>
Betreff: Re: $O - inherited class variables
Hi Rudolf,
> Le 21 oct. 2021 à 09:34, Rudolf Bargholz <rudolf at bargholz.ch> a écrit :
>
> If you want to use notation to override a variable from inherited to overridden, that I have no idea how to do.
That's exactly that and I don't either !
Have a nice day,
Best regards,
Jean-Marc
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
More information about the omnisdev-en
mailing list