LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with multicolumn listbox

I have a problem in selecting a multicolumn listbox and display it as an individual elements of a selected array. The problem is that whatever I typed in the multicolumn listbox will be disappeared after run. The only solution to get those individual elements is to type those element as in costant of 2D array and connect it to the property node of the multicolumn listbox. But that's not what I want, I want user to be able to select from what displays in the multicolumn list box and then represents each individual element.
0 Kudos
Message 1 of 5
(2,967 Views)
The thing to remember is that although a multicolumn list box looks like a string table, it's really a numeric control. To access the strings you have to use the ItemNames property.

Writing to the property (which is 2D array for a multicolumn listbox or 1D or a conventional listbox) displays strings in the box, reading the property would readout anything you might have entered into it.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 5
(2,967 Views)
Thanks Mike. It's working now!! 😃
0 Kudos
Message 3 of 5
(2,967 Views)
By the way is there an element of property node of 1 dimensional array called "ITemNames"? It have Text size etc.. but I could not fine "ItemNames"
0 Kudos
Message 4 of 5
(2,967 Views)
On a plain listbox, the Item Names property is the third from the bottom (right above Item Symbols which lets you put little checks and things in front of items).

Only plain listboxes have a 1D array of Item Names. The multicolumn listbox has the same property, but it's a 2D array.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 5
(2,967 Views)