LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

variant

I am having trouble converting data from regular C arrays to the variant type data required for the function below. There are so many different types of variant conversion types in CVI. I have two arrays, one of shorts, and one of char strings. How do I convert them?


SetDataEx Method
Parameters iFieldArray An array of short integers (or pointers to short integers in VISUAL C++)
that represent the field IDs of fields for which to set the specified data. See ACT!
Databases for lists of field IDs and names (Field constants).
szValueArray An array of strings (or BSTRs in VISUAL C++) for the data to set to the
specified fields. The same number of elements must be specified for the iFieldArray and
the szValueArray parameters.
Note: In Visual C++, use VARIANT.pp
array instead of VARIANT.parray for pointers to
elements in the array.
Return type Void
0 Kudos
Message 1 of 2
(2,913 Views)
Were you able to get the CA_VariantSet1DArray() functions to work? This is available in the CVI activex library that allows you to pass data to and from variants. This is for CVI 6.0

I hope this helps

Thanks
Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(2,913 Views)