LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove label/value in a ring?

Hi All!

I a ring control whose label/value entries depends on the content of another ring. What I do is a switch on the content of the "master" ring and a sequence of InsertListItem on the "slave" ring.

However, I am not able to delete the entries that I have added when I switch to another label/value subset.

So my question is: is there a command to remove/eliminate label/value entries from a ring?

Thank you very much for the help

 

Francesco

0 Kudos
Message 1 of 6
(3,274 Views)
Use DeleteListItem to programmatically delete an item from a ring control (and symmetrically InsertListItem to add an item to it).


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 6
(3,272 Views)

Wow it work!!!

great!

Thanks Roberto!!

 

Francesco

0 Kudos
Message 3 of 6
(3,270 Views)

Hi Roberto!

since the number of items is not constant, is there a way to retrieve the total number contained in the control?

Thanks again

 

Francesco

 

 

0 Kudos
Message 4 of 6
(3,269 Views)

Ok this one I dicovered it by myself 🙂

numberOfItems = -1

to remove all the entries.

 

Thanks again

 

 

 

0 Kudos
Message 5 of 6
(3,265 Views)
Glad to see you've find it by yourself! Smiley Happy In any case, GetNumListItems ( ) returns the number of items in a ring control.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 6 of 6
(3,257 Views)