[Gambas-user] Startup class (but gotta be a module not an actual class!)
Benoit Minisini
benoit.minisini at gambas-basic.org
Mon Jul 11 13:38:28 CEST 2022
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?
--
Benoît Minisini.
More information about the User
mailing list