[Gambas-user] Startup class (but gotta be a module not an actual class!)

Bruce Steers bsteers4 at gmail.com
Mon Jul 11 13:50:13 CEST 2022


On Mon, 11 Jul 2022 at 12:39, Benoit Minisini <
benoit.minisini at gambas-basic.org> wrote:

> Le 11/07/2022 à 13:27, Bruce Steers a écrit :
> > Is there a way to make a class and use it as a startup class?
> >
> > Seems ironic that the menu refers to "Startup class" but using an actual
> > class and not a module as the "startup class" gives a "no startup
> > method" error.
> > Cannot use Main() _init() or new()
> >
> > Is it impossible to use a class?
> >
> > Many Respects
> > BruceS
> >
>
> I guess you forgot to make the Main() method static or public?
>

Aha ,, Thanks Benoit , you are a star :)
Respects
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220711/8166dbcb/attachment.htm>


More information about the User mailing list