[Gambas-devel] About variat type

Benoit Minisini gambas at ...1...
Thu Sep 9 13:08:13 CEST 2004


On Wednesday 08 September 2004 18:35, Daniel Campos wrote:
> Hi:
>
>  As a part of the code of a component, I have to return a Variant value,
> however I have to fill first the value of that variant. I have some
> possibilities: a C "int" value, a C "char*" value or a C "float" value.
>
> How can I copy these values to the variant value?
>
> Regards,
>
> Daniel Campos
>
>

If return value of your method is a variant, just returns whatever you want. 
The interpreter will do the conversion for you.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the Devel mailing list