07-08-2009 08:57 AM
Hello
I would like to know how to translate in CVI the delphi VarArrayCreate routine that creates a variant array of specified dimensions and type. The result is stored in a Variant type. I looked at the ActiveX library but no function doing this was available. Could anybody help me.
Thanks and best regards.
Epiphane
07-09-2009 07:15 AM - edited 07-09-2009 07:15 AM
Hello Epiphane,
Did you look at the variant related functions ? Especially, the assigning functions, like Variant Set 1D Array, Variant Set 2D Array, etc...
CA_VariantSet1DArray (VARIANT *Variant, unsigned int Array_Type, unsigned int Number_Of_Elements, const void *Array);
CA_VariantSet2DArray (VARIANT *Variant, unsigned int Array_Type, unsigned int Size_of_Dim_1, unsigned int Size_of_Dim_2, const void *Array);
Regards,