LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
AB@17

Search Index/Replace Element in In Place Element Structure

Status: New

I wish there were an easier way to Search and Replace an element with In Place Element Structure.

 

Existing.png

 

This will easier to replace particular elements

 

Proposed.png

It would be very usefull

 

AB
Kudos are Accepted
4 Comments
Intaris
Proven Zealot

Im not sure how much the IPE helps here.....

GregSands
Active Participant

No kudos from me.  I don't think there is any advantage to using the IPE - in fact I think it makes things worse (except for a very small saving of BD space).

 

Your top diagram would usually have a case statement to handle the situation where the search element is not found in the array, which is something that would be difficult to incorporate in the IPE structure.  If it was implied that the IPE would not update the array if the element was not found, then there may be problems if other code was included within the IPE - would that run or not? Either way it's not clear.

RavensFan
Knight of NI

What about replace first instance vs. replace all instances?  Both are viable options.

JimChretz
Active Participant

Nope.

There is already "Search and replace string" by the way.