[Gambas-user] Problem on forms self-executable..

Dimitri Bellini dimitribellini at ...69...
Wed May 28 02:48:56 CEST 2003


> > My "project" is a simple 3 line of code:
> > '----------------------------------------------
> > ' Gambas class file
> > STATIC PUBLIC SUB Main()
> >
> > END
>
> Remove your own Main() function, because it overloads the internal Main()
> function of the class Form, and so nothing happens !

Hi Benoit
	thanks now works great but i notice this strange event ... When i Create new 
Form and I set "Startup class" in Fgo.class i have automaticaly :
> > '----------------------------------------------
> > ' Gambas class file
> > STATIC PUBLIC SUB Main()
> >
> > END
>

if i remove this "Main" press "F5" and work ... but if i create a new Form 
without a "startup Class" flag in Fgo.class i not have auto "Sub MAin".
Is correct syntax?
Thanks
Dimitri Bellini 





More information about the User mailing list