Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

To Variant

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Converts any LabVIEW data to variant data. You also can use this function to convert ActiveX data to variant data.

Details  

anything is any LabVIEW data you want to convert. This parameter is polymorphic.
variant is the resulting variant data.

To Variant Details

If you use the To Variant and Variant to Data functions with LabVIEW classes consider the following caveat.

Variants do not recognize inheritance hierarchies. For example, if you have child data travelling on a parent class wire and you then wire the parent wire to a To Variant function, the variant recognizes only the parent data type. If you wire a child data type to the Variant to Data function to extract the child data, LabVIEW returns an error. You must wire the parent to the Variant to Data function. Then use the To More Specific function to retrieve the child class data.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit