LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between LV Variant and Variant types?

I've been looking at the VariantType.lvlib found under <vi.lib>\Utility\VariantDataType and noticed that the Type.ctl control lists the two variant types "LV Variant" and "Variant".  I'm just curious as to what the difference between the two is.

 

If it helps, I'm creating VIs to save and load settings from an INI file.  I know that I could just use the OpenG VIs, but that isn't as fun (and I learn LV best by playing with it)! Smiley Very Happy

 

Thanks!

0 Kudos
Message 1 of 3
(3,337 Views)
I'm not sure that there is a difference, but if I had to guess, I would guess that the most likely candidate for the other variant is the OLE variant. You could probably test this by getting a variant from an ActiveX component, although I'm not sure they're all formatted as OLE variants.

___________________
Try to take over the world!
Message 2 of 3
(3,296 Views)

Thanks!  I hadn't even thought about the ActiveX stuff since I've never used it.  I'll try wiring up variants from different sources, like an ActiveX control, and see what happens.

 

What's interesting is that the LV type desciptor documentation does not mention this second variant, as far as I can tell.  I'll try to remember to report back with what I find.

0 Kudos
Message 3 of 3
(3,262 Views)