LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

table string

hello

in order to input the string array to table, let say  two string array A and B, these 2 arrays will fill in the row of the table
with conditional case, if element of array A is larger than B, then A should be filled in the row of table and vice versa. what my question is that should i use build array to build array A and array B?i tried. but it got 2 one row is alternate blank between row of table. what i desire is that it choose only the either correct string A or string B into the row of table. is it possible?pls brief me how am i going to do it. it is simple i think.but i just cant do it.

thanks
regards


0 Kudos
Message 1 of 2
(2,636 Views)
Your description is quite confusing. Since you have two array of strings, what do you mean by "larger"? There are many possibilities, e.g.:
  1. Translate string to a number and compare their value.
  2. Check the string lenght and take the longer string.
  3. Compare the strings and pick the one that would sort higher alphabetically.
  4. ...

Still the code will be similar in all cases. Feed both arrays to a FOR loop, compare elements pairwise however you choose, and select the winner. Form a new 1D array in an outoindexing output tunnel. Create a table from the resulting array.

I assume both input arrays have the same number of elements. If not, you need to decide what to do with the surplus elements and adjust the code accordingly.

Message Edited by altenbach on 01-27-2007 10:02 AM

0 Kudos
Message 2 of 2
(2,628 Views)