Sam

Well done! I was waiting for someone to mention the Collection as I read down this post... I am surprised people don't realise what they are


Perhaps something that wasn't highlighted was that the "Key" is very important if you want to be able to search for a particular item based "roughly" on what we would call an index value.

In this way you can get at the contents either by referencing the element directly (ie cMyCol(12)) or you could reference it by using a unique key (ie cMyCol("fred"))

There is an inherant problem however in which referencing by the key makes it impossible to find out what element number it is. While you can reference an element and look at its key you can't actually look at its element directly from the key.

If you want a way around that just let me know and I will go through the code.