LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

flatten to string adds string length

Solved!
Go to solution

Hi All,

I am flattening a cluster to string by using flatten to string.vi. The cluster contains strings and arrays. The flattened string contains the length of the string appended to the string.

So, if I have a cluster with just 1 string and has value ="LabVIEW". the flattened string would be "0007LabVIEW". Flatten to string vi has a boolen input "prepend string or array size?". even if I set the boolean to false, it still adds the length of the string. Is this a bug? 

0 Kudos
Message 1 of 2
(2,337 Views)
Solution
Accepted by topic author LVCoder

I believe if you read the Detailed Help of the Flatten To String Function you will see this is not a bug.  That boolean only applies to the top-level data, once you put something in a cluster or array, all bets are off.

Message 2 of 2
(2,334 Views)