Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 68907

How do I extract data from an OLE variant?

$
0
0

I am trying to retrieve a string from a Dot Net function.  What I get out is a Labview variant.

From my research, I suspect that what Labview is giving me in this variant is a pointer to the string that I need to dereference.  Problem is that I can't even get the pointer value out of the variant.

If I view the variant as an indicator, I see that it has a value but no matter what type I wire to the Variant to Data function, I get a type mismatch error.

The value is there, why can't Labview give it to me?

 

Clipboard02.gif

 


Viewing all articles
Browse latest Browse all 68907

Trending Articles