[Gambas-user] inherist wiki description misc!

Jussi Lahtinen jussi.lahtinen at gmail.com
Wed Jun 13 20:29:22 CEST 2018


Example if you have class named Test that inherits Point, then if you want
to access x and y in some method of the Test you need to use Me.X and Me.Y.
So, example Test class could have code like this:

Sub DoSomethingUseless()

  Me.X = 1
  Me.Y = 2

 ' These do not work:
 ' X = 1
 ' Y = 2

End


Jussi

On Wed, Jun 13, 2018 at 8:49 PM, PICCORO McKAY Lenz <mckaygerhard at gmail.com>
wrote:

> > You must use the ME <http://gambaswiki.org/wiki/lang/me> keyword to
> access the inherited elements from the class inside.
>
> at the last of the sentece said "inside".. umm that sound little
> confusing!?!
>
> can someone explain me better , i think the lwaguaje are a break here!
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180613/a1b23561/attachment.html>


More information about the User mailing list