[Gambas-user] dynamic classes?

Benoît Minisini gambas at ...1...
Tue Apr 21 18:03:26 CEST 2009


> Hello,
>
> how can i creat a class  having  a dynamic name?
>
> for example.
>
> I have some classnames in my database and want now do this
>
> DIM cclass as class
> Dim var = "myclassname"
> Class = new var
>
> But that dosent run:( He takes the var  as the class "var"
>
> How can I use the content  of the var?
>

Object.New() is a method that does what you need. See the documentation for 
the details.

Regards,

-- 
Benoît




More information about the User mailing list