>> edit collection

  • Thread starter Thread starter Jonathan
  • Start date Start date
J

Jonathan

Hi, just wondering whether I'm doing this the 'right' way... I have a
collection and want to change the value stored in an item. Do I have to
remove the item using the key and then add the new value or can I edit the
existing item referenced by the key.

My impression is that I must remove and then add.

Many thanks,
Jonathan
 
Jonathan said:
Hi, just wondering whether I'm doing this the 'right' way... I have a
collection and want to change the value stored in an item. Do I have to
remove the item using the key and then add the new value or can I edit the
existing item referenced by the key.

My impression is that I must remove and then add.


Your impression is correct ;-)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top