Re: [Gambas-user] Changing the key value in a collection

2009-11-20 Thread Jussi Lahtinen
Probably not good answer, but can you use something else as key? Maybe you should add ID value for those items. If value you use for key is editable, you should be aware that collection can't have same key twice... Jussi On Fri, Nov 20, 2009 at 06:16, bbb888 wrote: > > I have a situation where

[Gambas-user] Changing the key value in a collection

2009-11-19 Thread bbb888
I have a situation where the key for an item in a collection is an editable value in the collection item. Obviously, when that value changes, I need to update the collection and change the key. However, when I do this the item is in a new position in the collection. This is a problem because th