LabVIEW Idea Exchange

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

"Delete from Array" function should accept an array at index

Status: New

Currently there is no way to delete multiple elements in an array, that are not in sequence.

This way elements 2,4,7 would be deleted in just one function.

 

Delete from Array.png

 

It is cleaner code and in big arrays can enhange performance (at least i think)

14 Comments
DJed
NI Employee (retired)
Wouldn't a simpler solution to the suggestion be to make DeleteFromArray a growable node, like IndexArray?  That way you can wire multiple groups of elements to be deleted at once.
RavensFan
Knight of NI

No, I don't think so.

 

1.  You'd lose the programmatic ability to determine how many different rows you would want to remove.

2.  How would it behave in terms of indexing?  Would it operate on the array at once?  Or would it step through so that after you delete row 2, then deleting row 4 is actually deleting row 5 from the original array?

cmarquez
Member

I just went thru 18 pages of new ideas looking for this one before I posted my own.  Almost missed it though 'cuz sadly your image still shows like a big a "X".   I understand the problems dealing with multiple dimension arrays, I'd suggest just wiring a 1D boolean array that would remove "columns" and a 1D array, "rows" on a 2D array, "pages" on a 3D array, "volumes" on a 4D array and so on.  Whatever makes it easier, just gimme something like this!

Jason_Harrigan
Member

This is a great idea. New functionality, enhanced performance, relatively easy, and no additional clutter on the right-click menu.