LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to add string elements to an array?

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
(2,266 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! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 3
(2,247 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
(2,245 Views)