LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to delete a single array element and its next element take its place?

Hi i want to implement this program where when the user inputs the index, that particular element is deleted and the next array element takes its place. E.g. the array has 9 clusters, I want to remove the 4th cluster so that the 5th cluster takes its place and the 6th takes the 5th's place and so on and the last cluster becomes empty (basically shifting), how do i achieve this?

0 Kudos
Message 1 of 4
(1,139 Views)

Hi shreya,

 

you should use DeleteFromArray!

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 2 of 4
(1,133 Views)

Use Delete From Array Function

Munna
0 Kudos
Message 3 of 4
(1,130 Views)



Thank you & Best regards
syrpimp

=======================================================
“You must continue to gain expertise, but avoid thinking like an expert." -Denis Waitley
0 Kudos
Message 4 of 4
(1,124 Views)