LabVIEW Idea Exchange

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

Delete Element in Array Constant

For an array constant with many unique elements, if I have to delete 20 of the elements, I have to right-click on each element-> data operation -> delete element to delete elements.  For simple operation like this, I should be able to click on the element and press the delete key or some other key to delete.  I need some way faster.  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
8 Comments
Darin.K
Trusted Enthusiast

Easier ways to manipulate Array controls and constants has been asked for a few times.  My workaround suggestion would be to change the constant to a control, use the slightly more helpful options Start/Stop selection and cut data and finally change back to a constant.

jyang72211
Active Participant

Hi Darin,

 

Can you elaborate on your work around?  What is the start/stop selection?  

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
Darin.K
Trusted Enthusiast
In a control you can right-click in the index display to start and stop the selection at the displayed index. A bit easier to remove several elements, but still far from optimal.
jyang72211
Active Participant

Nice.  I learned something new.  Thanks!

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
GregR
Active Participant

I agree that the current behavior is far from easy to use, but what do you replace it with. The big question is how to represent multiple selection in an array control that could contain anything from a single numeric, string or boolean to a complex cluster. For numerics and strings, something focused around text selection seems viable. That doesn't work so well in the boolean or cluster cases. Selecting the contained control already has defined behavior. Is there some way to overload that without creating confusion? What if the control isn't big enough to show all the elements you want to delete? Do you need to be able to select some, change the index then select some more?

 

If you have concrete ideas for an approach that doesn't invalidate existing behavior, please post them.

Darin.K
Trusted Enthusiast
This idea as I read it is about array constants which lack the start/stop selection of controls. As a minimum, that behavior could be added to constants. In addition, adding the corresponding 'import from Excel' capability would at least allow you to easily edit values of numeric arrays in a spreadsheet or text editor. I still think this is a duplicate in spirit, I will try to search again.
Darin.K
Trusted Enthusiast

Here is the idea I was thinking of, I think it should work for constants as well as controls.

 

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Easier-way-to-insert-and-delete-element-in-array/idi-p...

Darren
Proven Zealot