LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why Listbox does not behave the same on second VI?

Solved!
Go to solution

Hi,

 

I want to change the color of listbox displayed items as shown on ListboxTest1.vi.  I want to duplicate the same behaivor of ListboxTest1.vi on the second vi: Compare2TextFilesX.vi.

 

ListboxTest1.vi works fine but not Compare2TextFilesX.vi even though both have similar code.

 

 

Download All
0 Kudos
Message 1 of 6
(3,049 Views)
Solution
Accepted by topic author frn

If you want the same action just use a shift register instead of using the iteration terminal. Initialize the shift register by 0 and increament by 1 inside the False case and simply pass the wire in the true case.

-----

The best solution is the one you find it by yourself
Message 2 of 6
(3,021 Views)

Hi P@Anand,

 

Thanks!

 

How do I clear all items and any formating of a listbox programatically?

 

 

 

0 Kudos
Message 3 of 6
(2,997 Views)

Wire an empty string array to the Item Names-property

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 6
(2,976 Views)

Hi Yamaeda,

 

Thanks for your suggestion.  I modified the attached VI, but does not work.  

 

How can I clear the listbox of any text and/or color changes?

 

 

0 Kudos
Message 5 of 6
(2,955 Views)

Hi frn,

 

You can clear the listbox of any text or color by using a property node the same way you have in the disabled structure on your block diagram.  You will just need to set the Listbox background to white again in a property node.  Are you wanting the listbox to clear when the program completes or begins?  If you want it to be cleared before the main program runs, wire the "Error Out" of the property node to the border of your for loop.  If you want it to clear after the main program finishes, wire the Error In to the border.

| Zach J. | Systems Engineer, HIL and Test Cells | National Instruments |
0 Kudos
Message 6 of 6
(2,932 Views)