[Gambas-user] Dumb question of the year.

Benoit Minisini gambas at ...1...
Sat Nov 12 13:41:52 CET 2005


On Saturday 12 November 2005 03:14, Scott Castaline wrote:
>
> In otherwords a shorthand for the parent object?
>

No. A shorthand to the *current* object.

ME is the only way to access properties and methods of the current object.

In gambas, any code is executed in the context of a current class and a 
current object.

If you run static code (i.e. code in a static method, or in a module), then 
the current class is the module or the class where the method is declared, 
and there is no current object (it is NULL).

If you run a method or an event handler of a Form, then the current class is 
the form class, and the current object the instance of the form.

The *parent* object means, in Gambas, given an object A, the other object B 
that receives all events from A.

Regards,

-- 
Benoit Minisini





More information about the User mailing list