$O - inherited class variables
jmv
jmvoegeli at bluewin.ch
Thu Oct 21 14:31:21 UTC 2021
Hi Rudolf,
> Le 21 oct. 2021 à 10:24, Rudolf Bargholz <rudolf at bargholz.ch> a écrit :
>
> 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.
Awesome !
I am eager to try it.
Thank you very much.
Regards,
Jean-Marc
More information about the omnisdev-en
mailing list