LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove item ring (string)

Solved!
Go to solution

Hello guys,
I have two questions please:
First question: On my vi attachment I managed to delete item 0 from Ring 1 (which is a numeric) but I can't do it for items from Ring 2 (which is a string).
How to do it for the string case please?

Second question: is it possible to delete an item from a Ring by just clicking on the Ring concerned.
Below is what I was able to do.
Thanks for your help

0 Kudos
Message 1 of 4
(612 Views)
Solution
Accepted by topic author Ngouda

Hi Ngouda,

 


@Ngouda wrote:

First question: On my vi attachment I managed to delete item 0 from Ring 1 (which is a numeric) but I can't do it for items from Ring 2 (which is a string).
How to do it for the string case please?

Second question: is it possible to delete an item from a Ring by just clicking on the Ring concerned.


  • Read the "Strings & Values[]" property to get an array of all ring items.
  • Delete the item you want to delete.
  • Write the changed array back into the ring property.

You can use these steps to solve both questions...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(601 Views)
Solution
Accepted by topic author Ngouda

First: you are wrong, items are removed from both controls. Moreover, there is no numeric there, only strings. The specific content of the item strings is immaterial.

Second: clicking on a Ring means selecting an item, not deleting. You may still delete the item by code managing the Value Change event, but this would prevent you to select. Alternatively, you would need another control to specify what you want to do with clicking (select or delete).

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 3 of 4
(598 Views)

Hello @GerdW, @pincpantin,

Thanks you for you reply that work non w

0 Kudos
Message 4 of 4
(527 Views)