LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

re-initalize Listbox to default values

Solved!
Go to solution

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?

 

 

 

0 Kudos
Message 1 of 19
(3,557 Views)
Solution
Accepted by topic author nyc_(is_out_of_here)

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.

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 2 of 19
(3,556 Views)

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).

 

Message 3 of 19
(3,507 Views)

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.

 

 

0 Kudos
Message 4 of 19
(3,502 Views)

Hello,

I am learning labview, How do you wire a constant array string constant to the listbox?

Thank you

0 Kudos
Message 5 of 19
(538 Views)

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 

Message 6 of 19
(525 Views)

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.

0 Kudos
Message 7 of 19
(474 Views)

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.....

0 Kudos
Message 8 of 19
(439 Views)

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.

0 Kudos
Message 9 of 19
(436 Views)

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.

0 Kudos
Message 10 of 19
(430 Views)