05-06-2010 04:59 PM
Perhaps it is getting late... However, I can not seem to figure out how to convert my column string to a row string. Having said that, I have read the other articles posted and none of them are solutions to my problem. Please view the jpgs to see what I mean.
So, on the front panel, I have a "row" string control. However, when I save it to my .dot file (word template), It spits out a column of data. Since this column contains my column headers, I need them to display as a row. Does anyone have any suggestions on how to "force" this to show in the template as a row instead of a column?
Solved! Go to Solution.
05-06-2010 05:16 PM
You can use the Transpose 2D Array function to turn rows into columns and columns into rows.
A B C A 1
1 2 3 becomes B 2
C 3
05-06-2010 05:20 PM
Thanks for the reply. I have a 1D array and the 2D array function will not link to the 1D array. Please see the result jpg for the array contents relative to the front panel display jpg.
David
05-06-2010 06:16 PM
Nevermind the help. I have found a solution to the problem.
So that everyone knows... If you want to change the deminsions of a string array just use the "reshape array" function in the tool palete. The deminsion size is the number of rows and the bottom one is the number of columns. Just wire it up and go!
-------------- to
-
-
-
-
-
-
-
and vise-versa.
David
05-29-2013 05:30 PM
Thank you David!, I was looking for something like this too.