LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to add string elements to an array?

Highlighted

I want to add string elements to an array by typing them in-for example if I type in "blue" first and it adds the first element, then I type in "red" and then array is "blue, red", etc. Thanks in advance

0 Kudos
Message 1 of 3
(87 Views)

Build array, and possibly Array to Spreadsheet string, should solve this (depending on if you want to watch it as an array of a comma separated text as you wrote).

/Y

G# - Award winning reference based OOP for LV, for free! ADDQ VIPM Now on GitHub
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 3
(68 Views)

Just to give you the basic idea:

 

Build String Array.png

 

You'd probably want to add some sort of input validation, check for an empty string, etc.

 

Andy

Message 3 of 3
(66 Views)