ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove from map won't work

Solved!
Go to solution

I am trying to use a map to reorder an array when a certain input is present. I build the map and then remove the item with "Remove from Map". The problem is that it's not working and I'm not sure what I am doing wrong. Please help!! 

Michoe_0-1757956496220.png

 

0 Kudos
Message 1 of 3
(634 Views)
Solution
Accepted by Michoe

We can't debug pictures- please post some code with example values (right click the control and Set to Default, then Save for Previous to 2021 or so- not everyone has 2025, assuming that's what you're running).

 

But my crystal ball says you probably have some non-printing or whitespace characters at the end of your key. For example, if it has a newline at the end, it won't match. The strings must be identical.

 

Change the string display to "\ codes" and I bet it will show you a \r, \n, or both at the end of the key in the map.

0 Kudos
Message 2 of 3
(626 Views)

Thanks Bert, that was it, there was a null character "\00" at the end of the text

0 Kudos
Message 3 of 3
(609 Views)