05-06-2013 07:25 PM
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.
Solved! Go to Solution.
05-06-2013 11:11 PM
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.
05-07-2013 10:26 AM
05-08-2013 04:07 AM
Wire an empty string array to the Item Names-property
/Y
05-08-2013 01:35 PM
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?
05-08-2013 08:58 PM
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.