12-05-2012 10:47 AM
Hi All,
I am using LV2011 SP1 version and I am trying to perform a simple string to variant conversion using the "To Variant" function.
So for example if my string input is COM3 the output that I am getting as a variant is "COM3". So as you can see the conversion is not done properly because I am getting quotation marks for my string on my variant side.
My goal is to be able to convert the string COM3 to variant as COM3 without any additional signs.
Thank you
12-05-2012 10:58 AM
I assume you are referring to what is shown inside the Variant indicator, strings are displayed with enclosing quotes which are not part of the actual data. If you convert the variant back to a string they will not be there.
12-05-2012 11:52 AM
Yes I know that converting it back to string, quotation marks disapear. However is there a way to display the string without any quotation marks in the variant indicator alone.
Thanks,
12-05-2012 11:52 AM
What's shown in the Variant is often pointless as you wont work with the variant, but you'll convert it back. What's the end goal?
/Y