LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to clear Multi COlumn List box

I have aMulti COlumn List Box Indicator in my program. This list box is updated while my program is running. When i stop my Program and start it again with out closing the Window. The new data is appended to the old data. Is there any way to clear the existing data in the list box when I start my program and display the new data from the first row.
0 Kudos
Message 1 of 3
(2,895 Views)
Hi,
I hope you have a software stop in your program, i.e. not using the Abort button.
If you have a software stop you can programatically force the program to execute a property node connected to the list box. If you change the property node to "Write" you can update your Listbox with a 2D array with empty strings. I made a small example to show what I mean.

Robert S
AE National Instruments Sweden
Message 2 of 3
(2,895 Views)
> I have aMulti COlumn List Box Indicator in my program. This list box
> is updated while my program is running. When i stop my Program and
> start it again with out closing the Window. The new data is appended
> to the old data. Is there any way to clear the existing data in the
> list box when I start my program and display the new data from the
> first row.

Look for a property with something like list strings or list items.
The value of the listbox is the line(s) that are selected.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,895 Views)