[Gambas-user] Creating a Variant[] on the fly

Benoît Minisini gambas at ...1...
Mon Apr 18 10:30:14 CEST 2011


> 
> Nevermind, I got around it by
> 
> DIM vArray as New Variant[]
> 
> 	varray=["Cardinalities",.LocalCardinality,.TargetCardinality]
> 	csvRelData.Add(varray,"Cardinalities")
> 	varray=["Transpose",.LocalSliceMethod,.TargetSliceMethod]
> 	csvRelData.Add(varray,"Transpose"]
> 	etc
> 
> which only doubles the size of the code.
> 
> But it would be nice if there was some way to cast an array as Variant[]
> :-)

Normally that casting is automatic in Gambas 3. Which version do you use?

-- 
Benoît Minisini




More information about the User mailing list