LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Consolidate rows in 2D array

(... of course you want to branch the key wire inside the "-1" case to eliminate one tunnel. Most likely the compiler will do that anyway later. ;))

0 Kudos
Message 11 of 13
(399 Views)

This ALMOST worked but I am not using the same key.

What would I change to go from input of

P-1,Bill,3.00
B-3,Joe,7.50
G-2,Jane,4.55
P-1,Bill,7.00
P-1,Bill,10.00
G-2,Jane,5.45

 

TO

Bill,3.00
Joe,7.50
Jane,4.55
Bill,7.00
Bill,10.00
Jane,5.45

0 Kudos
Message 12 of 13
(377 Views)

Don't take the entire Key array, but just the 2nd element when you go and combine it with the value in the last For Loop.

 

That or Delete Column 0 from the 2-D string array right before you convert it to a string.

0 Kudos
Message 13 of 13
(367 Views)