[Gambas-user] Procedure new()

craf prog at ...2177...
Wed Jul 29 17:49:07 CEST 2009


thank you very much , and to assimilate the differences

Regards

-----Mensaje original-----
De: Benoît Minisini <gambas at ...1...>
Reply-to: mailing list for gambas users
<gambas-user at lists.sourceforge.net>
Para: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Asunto: Re: [Gambas-user] Procedure new()
Fecha: Wed, 29 Jul 2009 16:21:08 +0200


> Benoît Minisini ha scritto:
> >> craf ha scritto:
> >>> Hi.
> >>>
> >>> What are the roles in the general procedure new ()?
> >>> What difference has the procedure Form_Open ()
> >>
> >> If I correctly understand your question...
> >> Regards,
> >> Doriano
> >
> > Or maybe he was talking about "_new()", the constructor?
>
> Yeah... it makes more sense... in this case a old-risen doubt comes to
> my mind: I can't find a documentation for _new(), _init() and perhaps
> other. I suppose _new() is called, then _init(), and finally, in the
> case of a form, Form_Open(). Is it so?
>
> Regards,
> Doriano.
>

Not really:

_init() is called once when the class is loaded. You can see it as the class 
constructor.

_new() is called when the object is created.

Form_Open() is just the event handler of the Open event raised by a Window 
object. It can be raised in many different situations. It usually means that 
the window is going to be shown for the first time.

Regards,




More information about the User mailing list