Delete Item from Listbox While Program is Running in LabVIEW

Updated Apr 5, 2023

Reported In

Software

  • LabVIEW

Issue Details

I don't want to create a button delete button, so can I right-click on the listbox and delete my selection during run-time?

 

Solution

Yes, to add the functionality to the right-click menu while the program is running you must create a Custom Run-Time Shortcut Menu then monitor the right-click selection with an Event Structure to execute the deletion code.

The tutorial, Create Custom Run-Time Shortcut Menus for LabVIEW Front Panel Objects  gives a detailed description on how this can be achieved.

Additional Information

The examples in the related links use the Delete from Array LabVIEW function.