LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Removing duplicates from string

I have a string of comma delimited characters and I want to search and remove any duplicate strings (i.e. John,Sally,Joe,John,Fred,John to John,Sally,Joe,Fred). What is the easiest way to do this with LabVIEW? Has something already been written that will do this?
0 Kudos
Message 1 of 4
(3,197 Views)
I would transfer the whole list in an array, sort it compare each item with the item before, if it is equal than delete it.
Message 2 of 4
(3,197 Views)
Hi!

Here's one way to do it.

/Thomas
0 Kudos
Message 3 of 4
(3,197 Views)
Thanks
0 Kudos
Message 4 of 4
(3,197 Views)