LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Clear Formatting Data from a listbox (color + text)

Is there a way to clear a listbox of any text and color added programatically?  So that everytime the vi is re-run will clear any previous data added previuosly. 

 

The attached VI does not work.  Any ideas?

 

 

 

0 Kudos
Message 1 of 4
(2,179 Views)

Your "disabled code" will work as long as you are sure it runs before your loop.  But the problem is that in your loop you are using insert into array.  And if your ItemNames array is empty, then you are trying to insert an array at position -1 which doesn't exist.  Try using Build Array instead.

0 Kudos
Message 2 of 4
(2,175 Views)

Hi 

0 Kudos
Message 3 of 4
(2,171 Views)

The array subset, index array combination did nothing for you either.

 

Like this:

 

0 Kudos
Message 4 of 4
(2,150 Views)