[Gambas-user] Creating a Variant[] on the fly
Bruce Bruen
bbruen at ...2308...
Tue Apr 19 01:15:43 CEST 2011
On Tuesday, April 19, 2011 12:03:24 AM Jussi Lahtinen wrote:
> You can do it this way;
>
> Create class named InlineVariant, paste this in;
>
> PUBLIC FUNCTION _call(...) AS Variant[]
> DIM Var AS Variant
> DIM aVar AS NEW Variant[]
>
> FOR EACH var IN Param
> aVar.Add(var)
> NEXT
>
> RETURN aVar
>
> END
>
>
> Then use it like this;
>
> csvRelData.Add(InlineVariant(.LocalCardinality, .TargetCardinality),
> "Cardinalities")
>
>
>
> Jussi
>
Beautiful! Thanks Jussi.
--
best regards
Bruce Bruen
More information about the User
mailing list