[Gambas-user] Class 'foo' is statis

Eric Damron edamron at ...776...
Sat Jan 8 07:03:06 CET 2005


I'm getting the message that my class is static when I run my 
application.  I define the class in one file and I DIM an object of the 
class type in a form class.  In the form's open event I instantiate the 
object.

Lets say the class is Tfoo.  In my form class I have:

PUBLIC oFoo as Tfoo

Then in the open event of the form I have:

oFoo = new Tfoo

The line above generates the error: Class 'Tfoo is STATIC.




More information about the User mailing list