LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combing elements of an array into a single string

Solved!
Go to solution

Hi everyone,

 

I would like to combine all elements of an array into a single string. For example, I have an array of 5 string elements

 

A

B

C

D

E

 

I would like to merge all the elements to a single string of ABCDE.

 

I tried using the "Array to Spreadsheet String" function but the separating tabs were causing me a problem even though I removed them with "Search and Replace String"

 

Thank you in advance for your help.

0 Kudos
Message 1 of 6
(2,601 Views)
Solution
Accepted by topic author gye325

arrayToString.png

0 Kudos
Message 2 of 6
(2,599 Views)

Thanks!

0 Kudos
Message 3 of 6
(2,590 Views)

Concatenate String will accept an array of strings directly.  No need for the loop.

 

Lynn

 

Concatenate.png

Message 4 of 6
(2,586 Views)

fantastic, even better. thanks!

0 Kudos
Message 5 of 6
(2,584 Views)

@johnsold wrote:

Concatenate String will accept an array of strings directly.  No need for the loop.

Drat! Forgot. Kudos, Lynn.
0 Kudos
Message 6 of 6
(2,565 Views)