02-22-2016 08:23 AM
Hi,
I have attached a pic which I got from another discussion. In that there is the selected item. I have been trying to find the selected item in labview 2011. I cant find it anywhere. Can you please help me access the selected item in labview 2011. Thank You.
02-22-2016 08:33 AM - edited 02-22-2016 08:34 AM
The 'value' of the indicator of the Listbox is an array of the indexes of the selected items. The 'ItemNames' property is the array of strings that make up the list of items. I think (??) if the listbox is configured to only allow you to select one item, the value is a scalar, rather than an array.
As per the picture - you can get the names of the selected items by indexing the 'values' of the listbox from the ItemNames.
The 'selected items' and 'selected item names' in the picture are just indicators on the wires.
02-22-2016 09:05 AM
Sam is right, but to add to this I made some wrapping code to make an interface where selection on a listbox is done using checkboxes, and it can return an array of strings, which are the selected items.
https://decibel.ni.com/content/docs/DOC-42155
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-22-2016 09:17 AM
Hi Sam,
I am sorry. I am not an expert in labview. I couldnot understand by indexing the 'values' of the listbox from the ItemNames. So could you please clarify. Thanking You.
02-22-2016 11:52 AM