[Gambas-user] difference ME and SUPER with inherit

BB adamnt42 at gmail.com
Thu Mar 9 17:10:03 CET 2023


Yes there is.

If you override a parent property or public method then you can use 
Super to force the reference to the parent item and Me to refer to the 
local one. Otherwise they just refer to the visible one, if its in the 
parent then that one is used with either Me or Super.

b

On 10/3/23 4:02 am, Mayost Sharon wrote:
> Hello
> When I inherit a command
> Does it make a difference if I use:
> ME or Super
> Attached is an example that I don't see a difference
> For example, I change ListBox.Clear which will clear the entire list except for the rhyme "c"
> Both when I use me and when I use super it works
> So the question is if there is a difference between them?
>
> Thank you
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230310/f97d3b81/attachment-0001.htm>


More information about the User mailing list