[Gambas-user] newbie-dumb ? how do I inherit

Benoit Minisini gambas at ...1...
Wed Jan 11 16:49:35 CET 2006


On Wednesday 11 January 2006 09:10, ron wrote:
> On Wednesday 11 January 2006 07:52, Benoit Minisini wrote:
> > On Monday 09 January 2006 12:03, Christian Faure wrote:
> > > El Viernes 06 Enero 2006 16:49, Fabien Bodard escribió:
> > > > Le Vendredi 6 Janvier 2006 17:07, johnf a écrit :
>
> ---8<-----
>
> > > In http://gambasdoc.org/help/lang/inherits help i've found:
> > > -------------
> > > Note that you can't use INHERITS in a form class file, because forms
> > > already inherits the Form class!
> > > -----------
> > > subclass from a form is possible?
> >
> > Yes it is.
>
> May be ???
> You can't INHERIT in a new class/object the class/object has already
> inherit on. This way a, MyPrivate1Form has already inherit on 'Form' and
> can not.
>
> 'Class MyPrivate1Form
> 'INHERIT Form  <--- can not (is already by own object class type)
>
> and
>
> 'Class MyPrivate2Form
> INHERIT MyPrivate1Form <--- can be done.
>

I thought you asked if you can inherit Form. So I answered yes. You can create 
a class that begins with "INHERITS Form", like any form you defined in the 
IDE.

Regards,

-- 
Benoit Minisini





More information about the User mailing list