LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Mads

Delete All Rows/Columns in Listbox (Clear Items list from control panel)

Status: Completed

Available in LabVIEW 2015 and later

In short: The delete row/column option in the right-click menu of listboxes should also allow you to delete all rows/columns (or "Clear Items List") in one go.

 

I typically get into this problem if I am filling a listbox with items programmatically. Before I save the VI and distribute it, I do not want it to contain all those items. I want it to be empty. So I right-click on the list and expect an option to clear the items list, but the only option available is to delete one row or column at a time. An impractical if not impossible task if the list is of any size. Today I end up doing it in code. I run the code once, remove it - and run into the same problem after the next run and save...

 

Example: 

ClearItemsNames.png

 

PS. This is a good candidate for JKIs Right-click framework too, but I think it deserves a place in the in-built menu.

 

9 Comments
Mads
Active Participant

FYI - I have made an RCF PlugIn that automates this now, it is located here.

altenbach
Knight of NI

For arrays we have: "right-click...data operations...empty array".

For tables we have: "right-click...data operations...empty table".

 

For symmetry, we should retain the same menu structure for list boxes to keep our sanity. I don't like if different controls have different context menus for very similar operations.

 

I suggest:

 

For Listboxes: "right-click...data operations...empty listbox". to keep the universe in balance.

Mads
Active Participant

Yes, I agree. NI - you fix? Smiley Happy

Mads
Active Participant

The functionality you mention is not yet public though;-)

altenbach
Knight of NI

The functionality you mention is not yet public though;-)

 

There are many comments above. What functionality are you referring to?

Mads
Active Participant

Empty table does, empty array does not...yet. (I'm beginning to doubt myself here now...but as far as I can see the empty array bit is not in LV10).

altenbach
Knight of NI

It has been there for a long time. Make sure you click on the array container and not on an array element.

Mads
Active Participant

I've managed to overlook it for years thenSmiley Surprised. New idea; show it when you click an element as well Smiley Happy

Darren
Proven Zealot
Status changed to: Completed

Available in LabVIEW 2015 and later