03-17-2011 11:30 AM
Using LabVIEW 2010.
It seems that an Invoke Node to Reinitialize to Default for a Listbox does not work. I have to wire an empty array to the Listbox's Item Names Property Node.
Am I doing something wrong?
Solved! Go to Solution.
03-17-2011 11:34 AM
mmm, I tried it myself, and it doesn't work either.
In the other hand I used to initialise them by wiring a constand empty string.
03-18-2011 03:55 PM
Reinitialize To Default (whether done programatically or from the front panel, only affects the Value of a control, not any of the other properties (such as the items in the list).
03-18-2011 04:46 PM
The "value" of a Listbox appears to be the selected items index and not the items in the Listbox.
Just seems odd there is no quick way to clear out a listbox short of wiring an empty array.
10-10-2024 02:01 AM
Hello,
I am learning labview, How do you wire a constant array string constant to the listbox?
Thank you
10-10-2024 03:05 AM
You create a property node for the listbox and choose 'ItemNames' for the property node.
Something like in https://forums.ni.com/t5/LabVIEW/Add-text-line-to-list-box/m-p/2123850#M689210
10-11-2024 01:18 AM
Thank you very much it worked, However, i have another question if you don't mind.
i have a list of 3 columns and n rows ( # of players that show up). The columns consists of : #players.....players names ....and... paid dues .My problem is the paid dues...I cannot figure an array of players that haven't paid yet. I can total the dues that were paid but not the names of the players that haven't paid. I hope it's clear enough.
10-13-2024 03:20 PM - edited 10-13-2024 03:34 PM
Thank you very much it worked, However, i have another question if you don't mind.
i have a list of 3 columns and n rows ( # of players that show up). The columns consists of : #players.....players names ....and... paid dues .My problem is the paid dues...I cannot figure an array of players that haven't paid yet. I want to have an output of the players that haven't paid yet programatically. I can total the dues that were paid but not the names of the players that haven't paid. I hope it's clear enough.
Anybody.....
10-13-2024 03:28 PM
Iterate over the 2D array of strings and use a conditional tunnel that auto-indexes the second value (player name) for all row where the third array value is an empty string.
Modify according to the exact requirements.
10-13-2024 03:42 PM
I tried it. it didn't work for me. May be i did not know how, Can you show me an example, I'll appreciate it.