LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you add, delete and replace items in a multicolumn listbox?

I am trying to edit items in a multicolumn listbox.
0 Kudos
Message 1 of 4
(6,360 Views)
Through the front panel: select and edit.

Programmatically: use property nodes
Message 2 of 4
(6,360 Views)
Hi,

It's pretty straight forward. I'm assuming you're working at this programatically. What you need is the Item Names property (right click on the FPTerm on the block diagram and select create->property->Item Names.
This is a 2-D array of strings. You can then use the array .vi's to delete, insert and replace the elements you're interested in.
You say items in your question - if it's an item in the middle of a row, or the middle of a column, you'll have to replace with an empty string instead deleting, otherwise you'll lose your positioning in the columns and rows of the other data.

Hope that helps
(attached is a little .vi which takes in a control reference to the multi column listbox, and allows you to add, delete and replace parts of the list - it
's not fully featured, as there's no add element, or delete element, but delete element can be acheived by replace element with an empty string. Adding an element requires knowing whether you want to insert it into a row, or into a column or both)

S.
// it takes almost no time to rate an answer Smiley Wink
Message 3 of 4
(6,360 Views)
what is FPT?
0 Kudos
Message 4 of 4
(6,360 Views)