LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Clear item selection in list box

hello
       how to clear item selection in list box.
when i run my program all the data are listed in my list box i am selecting particular row in my list box to read the particular row,
when i stop the program and again restart the program the the selection is not cleared the previous selected item is selected , how to clear the selection.
 
thanks
sk

I am using LabVIEW 7.1
 
0 Kudos
Message 1 of 4
(4,114 Views)
See attached example.  Wire an empty string array to item names should cler out the list.
 
Matt
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
Message 2 of 4
(4,107 Views)
hello Mr.Matt
                     Thanks
but when i clear the item list also the item selection(blue higlight) is not cleared
 if i close the program and reopen it is cleared but when i stop & restart the program the list of items are cleared but the item selected in the previous run is not cleared.
 in the attached picture df2.jpg i am selecting the first row so u can see a blue highlight, when i stop the program & again run the program the item names are cleared but the blue highlight selected is not cleared.
 
thanks
sk

I am using LabVIEW 7.1
 
0 Kudos
Message 3 of 4
(4,102 Views)
Hi,

Create a local variable for the list box, and wire -1 to the local variable.

Regards,
Mark.
0 Kudos
Message 4 of 4
(4,096 Views)