[Gambas-user] Class in Variant?

Benoît Minisini gambas at ...1...
Tue May 22 22:07:28 CEST 2012


Le 22/05/2012 21:59, Emil Lenngren a écrit :
> Why is it possible to store a Class in a Variant?
> Like, if you have a class named Class1, you can do this:
>
> Dim var1 As Variant = Class1
>
> But you can never use var1 after that (until you replace the content)...
>
> /Emil

Good question. Apparently I did that intentionally (according to 
'gbx_value.c'), but I don't remember why...

-- 
Benoît Minisini




More information about the User mailing list